Skip to content

Commit

Permalink
Use different horizontal bar character for improved consistency betwe…
Browse files Browse the repository at this point in the history
…en browsers

Unicode 0x23af displays inconsistently across browsers and platforms,
so use 0x2015 instead.
Also limit the click target size for the connection state.
  • Loading branch information
marcone committed Dec 26, 2022
1 parent fa1a9a3 commit 23eeabf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/components/PiStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
<span>{{ bytes(usedSize) }} / {{ bytes(piStatus.totalSize) }}</span>
<span class="left-space">({{ piStatus.snapCount }} snapshot{{ piStatus.snapCount > 1 ? 's' : '' }}, {{ secondsToDate(piStatus.snapOldest) }} {{ piStatus.snapCount > 1 ? ' - ' + secondsToDate(piStatus.snapNewest) : '' }})</span>
</VeuiProgress>
<div class="connected-row" @click="handleToggleDriveClick">
<span>💾</span>
<span>{{ piStatus.drivesActive == "yes" ? '⎯⎯⎯⎯⎯' : '⎯⎯/⎯⎯' }}</span>
<span>🚘</span>
<div class="connected-row">
<span class="clickable" @click="handleToggleDriveClick">
<span>💾</span>
<span>{{ piStatus.drivesActive == "yes" ? '―――――' : '――/――' }}</span>
<span>🚘</span>
</span>
</div>
</div>
</template>
Expand Down Expand Up @@ -118,7 +120,10 @@ export default {
}
.connected-row {
margin-top: 15px;
margin-top: 10px;
}
.clickable {
cursor: pointer;
}
</style>
Binary file modified teslausb-ui.tgz
Binary file not shown.

0 comments on commit 23eeabf

Please sign in to comment.