From a6f3c90722e1ea4e1458b7903393a7f4861b29ba Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 14 Apr 2022 14:34:20 +0100 Subject: [PATCH] :zap: Many big improvments to items + sections --- .../AddNewSectionLauncher.vue | 1 + src/components/LinkItems/Item.vue | 7 +-- src/components/LinkItems/Section.vue | 2 + src/components/LinkItems/SubItem.vue | 14 ++---- src/components/LinkItems/SubItemGroup.vue | 11 +++-- src/components/MinimalView/MinimalSection.vue | 49 +++++++++---------- src/components/PageStrcture/Nav.vue | 2 +- src/components/Settings/SettingsContainer.vue | 2 +- src/components/Widgets/WidgetBase.vue | 2 + src/components/Workspace/SideBar.vue | 11 ++++- src/components/Workspace/SideBarSection.vue | 19 ++++++- src/components/Workspace/WidgetView.vue | 2 +- src/mixins/ItemMixin.js | 17 ++++--- src/utils/defaults.js | 1 + 14 files changed, 84 insertions(+), 56 deletions(-) diff --git a/src/components/InteractiveEditor/AddNewSectionLauncher.vue b/src/components/InteractiveEditor/AddNewSectionLauncher.vue index 965778ed..26db0445 100644 --- a/src/components/InteractiveEditor/AddNewSectionLauncher.vue +++ b/src/components/InteractiveEditor/AddNewSectionLauncher.vue @@ -61,6 +61,7 @@ export default { text-align: center; height: fit-content; margin: 10px; + min-width: 250px; } diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue index 6e4c28ec..75cf3563 100644 --- a/src/components/LinkItems/Item.vue +++ b/src/components/LinkItems/Item.vue @@ -122,10 +122,6 @@ export default { data() { return { editMenuOpen: false, - customStyles: { - color: this.item.color, - background: this.item.backgroundColor, - }, }; }, methods: { @@ -312,7 +308,8 @@ p.description { justify-content: flex-end; align-items: center; height: 2rem; - padding-top: 4px; + padding-top: 0.25rem; + padding-left: 0.5rem; div img { width: 2rem; } diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue index ba961c56..edb1e58b 100644 --- a/src/components/LinkItems/Section.vue +++ b/src/components/LinkItems/Section.vue @@ -30,6 +30,7 @@ :itemId="item.id" :title="item.title" :subItems="item.subItems" + @triggerModal="triggerModal" /> diff --git a/src/components/LinkItems/SubItem.vue b/src/components/LinkItems/SubItem.vue index f4e3adc5..9760f55b 100644 --- a/src/components/LinkItems/SubItem.vue +++ b/src/components/LinkItems/SubItem.vue @@ -13,7 +13,8 @@ class="sub-item-link item" > - + @@ -37,6 +36,12 @@ export default { return 2; }, }, + methods: { + /* Pass open modal emit event up */ + triggerModal(url) { + this.$emit('triggerModal', url); + }, + }, }; diff --git a/src/components/MinimalView/MinimalSection.vue b/src/components/MinimalView/MinimalSection.vue index 0cac4510..95a5c8a3 100644 --- a/src/components/MinimalView/MinimalSection.vue +++ b/src/components/MinimalView/MinimalSection.vue @@ -1,30 +1,27 @@