mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-16 00:20:37 +08:00
@@ -316,6 +316,8 @@
|
||||
});
|
||||
|
||||
const activeRoute = router.activeRouteStore;
|
||||
const canGoBack = router.canGoBack;
|
||||
const canGoForward = router.canGoForward;
|
||||
|
||||
function isInbox(): boolean {
|
||||
return $activeRoute.resource === "inbox";
|
||||
@@ -514,6 +516,9 @@
|
||||
color: var(--color-text-tertiary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.window-controls :global(.button.disabled .icon) {
|
||||
color: var(--color-text-quaternary);
|
||||
}
|
||||
.update-badge {
|
||||
margin-left: auto;
|
||||
font: var(--txt-body-s-regular);
|
||||
@@ -614,6 +619,7 @@
|
||||
title="{collapsed.value
|
||||
? 'Expand'
|
||||
: 'Collapse'} sidebar ({toggleShortcut})"
|
||||
ariaLabel="{collapsed.value ? 'Expand' : 'Collapse'} sidebar"
|
||||
keyShortcuts={ariaKeyShortcuts("toggleSidebar")}
|
||||
onclick={toggleSidebar}
|
||||
styleWidth={isMini ? "2rem" : "1.5rem"}
|
||||
@@ -623,6 +629,9 @@
|
||||
</Button>
|
||||
<Button
|
||||
variant="naked"
|
||||
title="Back"
|
||||
ariaLabel="Back"
|
||||
disabled={!$canGoBack}
|
||||
onclick={() => window.history.back()}
|
||||
styleWidth={isMini ? "2rem" : "1.5rem"}
|
||||
styleHeight={isMini ? "2rem" : "1.5rem"}
|
||||
@@ -631,6 +640,9 @@
|
||||
</Button>
|
||||
<Button
|
||||
variant="naked"
|
||||
title="Forward"
|
||||
ariaLabel="Forward"
|
||||
disabled={!$canGoForward}
|
||||
onclick={() => window.history.forward()}
|
||||
styleWidth={isMini ? "2rem" : "1.5rem"}
|
||||
styleHeight={isMini ? "2rem" : "1.5rem"}
|
||||
@@ -640,6 +652,7 @@
|
||||
<Button
|
||||
variant="naked"
|
||||
title="Reload"
|
||||
ariaLabel="Reload"
|
||||
onclick={() => window.location.reload()}
|
||||
styleWidth={isMini ? "2rem" : "1.5rem"}
|
||||
styleHeight={isMini ? "2rem" : "1.5rem"}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
flatRight?: boolean;
|
||||
bordered?: boolean;
|
||||
title?: string;
|
||||
ariaLabel?: string;
|
||||
styleHeight?: "1.5rem" | "1.75rem" | "2rem" | "2.5rem";
|
||||
styleWidth?: string;
|
||||
styleJustifyContent?: string;
|
||||
@@ -32,6 +33,7 @@
|
||||
flatRight = false,
|
||||
bordered = false,
|
||||
title,
|
||||
ariaLabel,
|
||||
styleHeight = "2rem",
|
||||
styleWidth = undefined,
|
||||
styleJustifyContent = undefined,
|
||||
@@ -184,7 +186,9 @@
|
||||
style:--color-text={colors[variant]}
|
||||
style:--color-text-hover={colorsHover[variant]}
|
||||
style:--color-text-active={colorsActive[variant]}
|
||||
aria-label={ariaLabel}
|
||||
aria-keyshortcuts={keyShortcuts}
|
||||
aria-disabled={disabled || undefined}
|
||||
onclick={!disabled ? onclick : undefined}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
|
||||
Reference in New Issue
Block a user