Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(updater): use primary button for update toast (#18861)

Inneibf6362984316
diff --git a/src/features/Electron/updater/UpdateNotification.tsx b/src/features/Electron/updater/UpdateNotification.tsx
index 15b9270bbf5..09ce9b36a70 100644
--- a/src/features/Electron/updater/UpdateNotification.tsx
+++ b/src/features/Electron/updater/UpdateNotification.tsx
@@ -51,10 +51,12 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
align-items: center;
max-inline-size: calc(100vw - 32px);
- padding-block: 10px;
- padding-inline: 16px 10px;
- border-radius: ${cssVar.borderRadius};
+ padding-block: 8px;
+ padding-inline: 12px 8px;
+ border-radius: ${cssVar.borderRadiusLG};
+ font-size: 14px;
+ line-height: 1.25;
color: ${cssVar.colorText};
background: ${cssVar.colorBgElevated};
@@ -174,7 +176,7 @@ export const UpdateNotification: React.FC = () => {
</BaseButton>
<BaseButton
size={'small'}
- type={'text'}
+ type={'primary'}
onClick={() => {
rendererOtaService.applyNow().catch(() => {});
}}
@@ -227,7 +229,7 @@ export const UpdateNotification: React.FC = () => {
<BaseButton
loading={isInstalling}
size={'small'}
- type={'text'}
+ type={'primary'}
onClick={() => {
setIsInstalling(true);
autoUpdateService.installNow();