style(chat): align external browser dialog

This commit is contained in:
2026-06-18 14:30:59 +08:00
parent cf54bc742d
commit e2a89ef063
2 changed files with 21 additions and 18 deletions
@@ -5,18 +5,17 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: var(--spacing-md, 16px);
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
} }
.dialog { .dialog {
width: 100%; width: calc(100% - 40px);
max-width: 360px; max-width: var(--pwa-install-dialog-max-width, 360px);
padding: 24px 18px 18px; padding: 24px 16px 16px;
text-align: center; text-align: center;
background: var(--color-page-background, #ffffff); background: var(--color-page-background, #ffffff);
border-radius: 32px; border-radius: 40px;
box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
} }
.title { .title {
@@ -28,35 +27,40 @@
} }
.content { .content {
margin: 0 12px 22px; margin: 0 24px var(--spacing-xxl, 24px);
font-size: var(--font-size-md, 15px); font-size: var(--font-size-lg, 16px);
line-height: 1.5; line-height: 1.5;
color: var(--color-text-secondary, #555555); text-align: left;
color: #393939;
white-space: pre-line; white-space: pre-line;
} }
.actions { .actions {
display: flex; display: flex;
gap: var(--spacing-md, 12px); gap: var(--spacing-md, 12px);
width: 100%;
} }
.button { .button {
flex: 1 1 auto; flex: 1 1 auto;
height: 44px; height: var(--pwa-button-height, 44px);
border: 0; border: 0;
border-radius: 999px; border-radius: var(--radius-bottom-sheet, 28px);
font-size: var(--font-size-md, 15px); font-size: var(--font-size-lg, 16px);
font-weight: 700; font-weight: 600;
cursor: pointer; cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
} }
.secondary { .secondary {
color: var(--color-text-secondary, #555555); color: var(--color-page-background, #ffffff);
background: #efefef; background: var(--color-text-secondary, #9e9e9e);
} }
.primary { .primary {
color: #ffffff; color: var(--color-page-background, #ffffff);
background: linear-gradient( background: linear-gradient(
var(--color-button-gradient-start, #ff67e0), var(--color-button-gradient-start, #ff67e0),
var(--color-button-gradient-end, #ff52a2) var(--color-button-gradient-end, #ff52a2)
@@ -27,8 +27,7 @@ export function ExternalBrowserDialog({
Open in browser Open in browser
</h2> </h2>
<p className={styles.content}> <p className={styles.content}>
Sync your Facebook profile to an external browser{"\n"} Sync your Facebook profile to an external browser for the best chat experience.
for the best chat experience.
</p> </p>
<div className={styles.actions}> <div className={styles.actions}>
<button <button