From 2baccdb7185be8b9d8a0d816c93c41c741f6dae3 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 14 Apr 2021 14:31:08 +0100 Subject: [PATCH] Adds item size switching functionality and styles --- src/components/LinkItems/Item.vue | 58 +++++++++++++------ src/components/LinkItems/ItemGroup.vue | 3 +- .../LinkItems/ItemOpenMethodIcon.vue | 30 ++++++++-- src/components/Settings/ItemSizeSelector.vue | 9 ++- .../Settings/KeyboardShortcutInfo.vue | 4 +- src/components/Settings/LayoutSelector.vue | 9 ++- src/components/Settings/SettingsContainer.vue | 1 + src/components/Settings/ThemeSelector.vue | 1 - src/views/Home.vue | 23 ++++++-- 9 files changed, 99 insertions(+), 39 deletions(-) diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue index c33b3258..0490070b 100644 --- a/src/components/LinkItems/Item.vue +++ b/src/components/LinkItems/Item.vue @@ -2,7 +2,7 @@ - + @@ -40,6 +41,7 @@ export default { default: 'newtab', validator: (value) => ['newtab', 'sametab', 'iframe'].indexOf(value) !== -1, }, + itemSize: String, }, data() { return { @@ -93,14 +95,8 @@ export default { diff --git a/src/components/LinkItems/ItemGroup.vue b/src/components/LinkItems/ItemGroup.vue index 25350040..946f565b 100644 --- a/src/components/LinkItems/ItemGroup.vue +++ b/src/components/LinkItems/ItemGroup.vue @@ -21,7 +21,7 @@ :description="item.description" :icon="item.icon" :target="item.target" - :svg="item.svg" + :itemSize="itemSize" @itemClicked="$emit('itemClicked')" @triggerModal="triggerModal" /> @@ -47,6 +47,7 @@ export default { title: String, displayData: Object, items: Array, + itemSize: String, }, components: { Collapsable, diff --git a/src/components/LinkItems/ItemOpenMethodIcon.vue b/src/components/LinkItems/ItemOpenMethodIcon.vue index f92fdd1b..a4c0dfa0 100644 --- a/src/components/LinkItems/ItemOpenMethodIcon.vue +++ b/src/components/LinkItems/ItemOpenMethodIcon.vue @@ -1,5 +1,5 @@