Skip to content

Commit

Permalink
Things (inbox) list: Improve condition for reversed checkbox style
Browse files Browse the repository at this point in the history
Follow-up for openhab#2472.

Improve the condition to only show the reversed order where really required.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Mar 30, 2024
1 parent 2539d6d commit 3b34208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<f7-col>
<f7-block-title>
<span v-if="ready">{{ inboxCount }} entries</span>
<div v-if="!$device.desktop" style="text-align:right; color:var(--f7-block-text-color); font-weight: normal" class="float-right">
<div v-if="!$device.desktop && $f7.width < 1024" style="text-align:right; color:var(--f7-block-text-color); font-weight: normal" class="float-right">
<f7-checkbox :checked="showIgnored" @change="toggleIgnored" /> <label @click="toggleIgnored" style="cursor:pointer">Show ignored</label>
</div>
<div v-else style="text-align:right; color:var(--f7-block-text-color); font-weight: normal" class="float-right">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<f7-block-title class="searchbar-hide-on-search">
<span>{{ thingsCount }} Things</span>
<template v-if="groupBy === 'location'">
<div v-if="!$device.desktop" style="text-align:right; color:var(--f7-block-text-color); font-weight: normal" class="float-right">
<div v-if="!$device.desktop && $f7.width < 1024" style="text-align:right; color:var(--f7-block-text-color); font-weight: normal" class="float-right">
<f7-checkbox :checked="showNoLocation" @change="toggleShowNoLocation" /> <label @click="toggleShowNoLocation" style="cursor:pointer">Show no location</label>
</div>
<div v-else style="text-align:right; color:var(--f7-block-text-color); font-weight: normal" class="float-right">
Expand Down

0 comments on commit 3b34208

Please sign in to comment.