web/Sidebar: mark remux tab as beta
This commit is contained in:
parent
97866fb306
commit
9e8c953ca6
2 changed files with 11 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
<SidebarTab tabName="save" tabLink="/">
|
<SidebarTab tabName="save" tabLink="/">
|
||||||
<IconDownload />
|
<IconDownload />
|
||||||
</SidebarTab>
|
</SidebarTab>
|
||||||
<SidebarTab tabName="remux" tabLink="/remux">
|
<SidebarTab tabName="remux" tabLink="/remux" beta>
|
||||||
<IconRepeat />
|
<IconRepeat />
|
||||||
</SidebarTab>
|
</SidebarTab>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
export let tabName: string;
|
export let tabName: string;
|
||||||
export let tabLink: string;
|
export let tabLink: string;
|
||||||
|
export let beta = false;
|
||||||
|
|
||||||
const firstTabPage = ["save", "remux", "settings"];
|
const firstTabPage = ["save", "remux", "settings"];
|
||||||
|
|
||||||
|
@ -44,6 +45,9 @@
|
||||||
role="tab"
|
role="tab"
|
||||||
aria-selected={isTabActive}
|
aria-selected={isTabActive}
|
||||||
>
|
>
|
||||||
|
{#if beta}
|
||||||
|
<div class="beta-sign">β</div>
|
||||||
|
{/if}
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
{$t(`tabs.${tabName}`)}
|
{$t(`tabs.${tabName}`)}
|
||||||
</a>
|
</a>
|
||||||
|
@ -97,6 +101,12 @@
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.beta-sign {
|
||||||
|
position: absolute;
|
||||||
|
transform: translateX(16px) translateY(-6px);
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes pressButton {
|
@keyframes pressButton {
|
||||||
0% {
|
0% {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
|
|
Loading…
Reference in a new issue