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