diff --git a/src/renderer/components/ft-card/ft-card.css b/src/renderer/components/ft-card/ft-card.css deleted file mode 100644 index b9ef73f8b..000000000 --- a/src/renderer/components/ft-card/ft-card.css +++ /dev/null @@ -1,7 +0,0 @@ -.ft-card { - background-color: var(--card-bg-color); - margin: 8px; - padding-block: 3px 16px; - padding-inline: 16px; - box-shadow: 0 1px 2px rgba(0,0,0,.1); -} diff --git a/src/renderer/components/ft-card/ft-card.js b/src/renderer/components/ft-card/ft-card.js index 29d02d724..8075ef4c6 100644 --- a/src/renderer/components/ft-card/ft-card.js +++ b/src/renderer/components/ft-card/ft-card.js @@ -1,5 +1,16 @@ import { defineComponent } from 'vue' export default defineComponent({ - name: 'FtCard' + name: 'FtCard', + props: { + big: { + type: Boolean, + default: false + } + }, + computed: { + useFullWidthLayout: function () { + return this.$store.getters.getUseFullWidthLayout + } + } }) diff --git a/src/renderer/components/ft-card/ft-card.scss b/src/renderer/components/ft-card/ft-card.scss new file mode 100644 index 000000000..fd586793d --- /dev/null +++ b/src/renderer/components/ft-card/ft-card.scss @@ -0,0 +1,17 @@ +.ft-card { + background-color: var(--card-bg-color); + margin: 8px; + padding-block: 3px 16px; + padding-inline: 16px; + box-shadow: 0 1px 2px rgba(0,0,0,.1); + + &.big:not(.fullWidth) { + inline-size: 85%; + } + + @media only screen and (max-width: 680px) { + &.big:not(.fullWidth) { + inline-size: 90%; + } + } +} diff --git a/src/renderer/components/ft-card/ft-card.vue b/src/renderer/components/ft-card/ft-card.vue index 641a0100f..e4716ed4a 100644 --- a/src/renderer/components/ft-card/ft-card.vue +++ b/src/renderer/components/ft-card/ft-card.vue @@ -1,6 +1,7 @@