Skip to content

Commit

Permalink
Home edit: Fix model tab settings not editable (#2751)
Browse files Browse the repository at this point in the history
Fixes #2597.
Regression from #2304.

Also minimizes the gap between the Cards title and the reorder button.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 authored Sep 12, 2024
1 parent 8e357f4 commit b207722
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@
</f7-col>
</f7-block>

<f7-block>
<f7-block class="no-margin-bottom">
<f7-segmented strong tag="p">
<f7-button v-for="tab in modelTabs" :key="tab.value" @click="showCardControls = false; currentModelTab = tab.value" :active="currentModelTab === tab.value" :text="tab.label" />
</f7-segmented>

<f7-block-title>Cards</f7-block-title>
<f7-block-title class="no-margin-bottom">
Cards
</f7-block-title>
<div>
<div class="display-block padding">
<div class="no-padding float-right">
Expand Down Expand Up @@ -88,7 +90,7 @@
</div>
</f7-block>

<f7-block style="z-index: -1">
<f7-block class="homecards-settings">
<div v-if="currentModelTab === 'locations'">
<config-sheet
:parameterGroups="locationsTabParameters.props.parameterGroups || []"
Expand Down Expand Up @@ -144,9 +146,17 @@
top 80%
white-space pre-wrap
.homecards-list
margin-bottom 0
padding-bottom calc(5rem + var(--f7-block-margin-vertical))
.item-link
overflow inherit
z-index inherit !important
.homecards-settings
margin-top 0
.parameter-group
margin-top 0
.parameter-group-title
margin-top 0
</style>

<script>
Expand Down

0 comments on commit b207722

Please sign in to comment.