style: the floating-island chrome is dev-only in the menu
The appearance menu's "Modern (beta)" entry sits behind import.meta.env.DEV, so a production build offers no way into the island chrome until it catches up with the ribbon. The chrome itself and a stored 'modern' pref keep working.
This commit is contained in:
1 parent
a7522547b7
commit
6bbf4286c3
2 files changed
+8
-4
No files matched your search
@@ -319,9 +319,11 @@
|
||||
<button class:selected={chromeMode === 'ribbon'} onclick={() => { chromeMode = 'ribbon'; closeMenu(); }}>
|
||||
{t().ribbon.chrome.ribbon}<span class="menu-sub">{t().ribbon.chrome.ribbonHint}</span>
|
||||
</button>
|
||||
<button class:selected={chromeMode === 'modern'} onclick={() => { chromeMode = 'modern'; closeMenu(); }}>
|
||||
{t().ribbon.chrome.modern}<span class="menu-sub">{t().ribbon.chrome.modernHint}</span>
|
||||
</button>
|
||||
{#if import.meta.env.DEV}
|
||||
<button class:selected={chromeMode === 'modern'} onclick={() => { chromeMode = 'modern'; closeMenu(); }}>
|
||||
{t().ribbon.chrome.modern}<span class="menu-sub">{t().ribbon.chrome.modernHint}</span>
|
||||
</button>
|
||||
{/if}
|
||||
<hr />
|
||||
<div class="rb-menu-label">{t().appearance.title}</div>
|
||||
{#each (['light', 'dark', 'allBlack', 'auto'] as const) as m}
|
||||
|
||||
Reference in new issue
Block a user