From 96882f01420f56757d36e68c12267edf9784d7da Mon Sep 17 00:00:00 2001 From: David Tsay Date: Fri, 27 Sep 2024 14:21:36 -0700 Subject: [PATCH] use `resizeObserver` instead of window listeners safer access to `localStorage` initial state ie. legacy localStorage having `expanded` but not `multiline` --- src/ui/layout/AppLayout.vue | 169 +++++++++++++----- src/ui/layout/layout.scss | 4 - src/ui/layout/status-bar/StatusIndicators.vue | 49 +---- 3 files changed, 129 insertions(+), 93 deletions(-) diff --git a/src/ui/layout/AppLayout.vue b/src/ui/layout/AppLayout.vue index 3f6cac8b0a..5cb2611c67 100644 --- a/src/ui/layout/AppLayout.vue +++ b/src/ui/layout/AppLayout.vue @@ -33,22 +33,17 @@ :class="{ 'l-shell__head--expanded': headExpanded, 'l-shell__head--minify-indicators': !headExpanded, - 'l-shell__head--indicators-single-line': !indicatorsMultiline, - '--indicators-overflowing': indicatorsOverflowing + 'l-shell__head--indicators-single-line': !indicatorsMultiline }" > - +