From 7d8b1c97089a6b4a9ab2cacca5a7f96fd685dcab Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Tue, 12 Nov 2024 14:53:45 +0100 Subject: [PATCH] Tweak empty view content styles --- src/views/controls/button.css | 5 ++--- src/views/controls/menu-item.css | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/controls/button.css b/src/views/controls/button.css index acda4290..3c7a4feb 100644 --- a/src/views/controls/button.css +++ b/src/views/controls/button.css @@ -28,9 +28,8 @@ --discovery-view-button-focus-border-color: rgba(128, 128, 128, 0.6); } .view-button:empty::before { - content: '|'; - width: 0; - visibility: hidden; + content: '\200B'; + float: left; } .view-button:focus-visible { box-shadow: 0 0 1px 3px rgba(0, 170, 255, 0.2); diff --git a/src/views/controls/menu-item.css b/src/views/controls/menu-item.css index 2b9d54f8..0f93db44 100644 --- a/src/views/controls/menu-item.css +++ b/src/views/controls/menu-item.css @@ -6,8 +6,8 @@ cursor: pointer; } .view-menu-item:empty::before { - content: '|'; - visibility: hidden; + content: '\200B'; + float: left; } .view-menu-item:hover, .view-menu-item.discovery-view-popup-active {