web/Sidebar: mark remux tab as beta

This commit is contained in:
wukko 2024-09-05 07:55:30 +06:00
parent 97866fb306
commit 9e8c953ca6
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 11 additions and 1 deletions

View file

@ -32,7 +32,7 @@
<SidebarTab tabName="save" tabLink="/">
<IconDownload />
</SidebarTab>
<SidebarTab tabName="remux" tabLink="/remux">
<SidebarTab tabName="remux" tabLink="/remux" beta>
<IconRepeat />
</SidebarTab>
</div>

View file

@ -5,6 +5,7 @@
export let tabName: string;
export let tabLink: string;
export let beta = false;
const firstTabPage = ["save", "remux", "settings"];
@ -44,6 +45,9 @@
role="tab"
aria-selected={isTabActive}
>
{#if beta}
<div class="beta-sign">β</div>
{/if}
<slot></slot>
{$t(`tabs.${tabName}`)}
</a>
@ -97,6 +101,12 @@
transform: none;
}
.beta-sign {
position: absolute;
transform: translateX(16px) translateY(-6px);
opacity: 0.7;
}
@keyframes pressButton {
0% {
transform: scale(0.95);