feat: enhance update notification layout and add room info display in developer tools
This commit is contained in:
@@ -118,42 +118,38 @@ export function UpdateNotification() {
|
||||
// Show check button if no update status
|
||||
if (!updateAvailable && !updateReady && !checking) {
|
||||
return (
|
||||
<Box gap="100" alignItems="Center">
|
||||
<button
|
||||
className={css.CheckButton}
|
||||
onClick={handleCheckForUpdates}
|
||||
aria-label="Check for updates"
|
||||
title="Check for updates"
|
||||
type="button"
|
||||
>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||
<path
|
||||
d="M8 2V10M8 10L5 7M8 10L11 7"
|
||||
stroke="currentColor"
|
||||
strokeWidth="1.5"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M3 14H13"
|
||||
stroke="currentColor"
|
||||
strokeWidth="1.5"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</Box>
|
||||
<button
|
||||
className={css.CheckButton}
|
||||
onClick={handleCheckForUpdates}
|
||||
aria-label="Check for updates"
|
||||
title="Check for updates"
|
||||
type="button"
|
||||
>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||
<path
|
||||
d="M8 2V10M8 10L5 7M8 10L11 7"
|
||||
stroke="currentColor"
|
||||
strokeWidth="1.5"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M3 14H13"
|
||||
stroke="currentColor"
|
||||
strokeWidth="1.5"
|
||||
strokeLinecap="round"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
// Show checking state
|
||||
if (checking) {
|
||||
return (
|
||||
<Box gap="100" alignItems="Center">
|
||||
<button className={css.UpdateButton} disabled type="button">
|
||||
<Spinner variant="Secondary" size="50" />
|
||||
</button>
|
||||
</Box>
|
||||
<button className={css.UpdateButton} disabled type="button">
|
||||
<Spinner variant="Secondary" size="50" />
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -163,7 +159,7 @@ export function UpdateNotification() {
|
||||
}
|
||||
|
||||
return (
|
||||
<Box gap="100" alignItems="Center">
|
||||
<>
|
||||
<button
|
||||
className={css.UpdateButton}
|
||||
onClick={handleMenuToggle}
|
||||
@@ -172,14 +168,7 @@ export function UpdateNotification() {
|
||||
type="button"
|
||||
>
|
||||
{downloading ? (
|
||||
<Box alignItems="Center" gap="100">
|
||||
<Spinner variant="Secondary" size="50" />
|
||||
{downloadProgress > 0 && (
|
||||
<Text size="T200" className={css.ProgressText}>
|
||||
{downloadProgress}%
|
||||
</Text>
|
||||
)}
|
||||
</Box>
|
||||
<Spinner variant="Secondary" size="50" />
|
||||
) : (
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||
<path
|
||||
@@ -246,6 +235,6 @@ export function UpdateNotification() {
|
||||
>
|
||||
{null}
|
||||
</PopOut>
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user