Skip to content

Commit 54ffda3

Browse files
committed
fix(desktop): match canonical chip chrome
1 parent 6b2411c commit 54ffda3

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

apps/desktop/e2e/smoke.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,9 @@ test.describe('desktop shell smoke', () => {
119119
.toBe(true)
120120
await expect(window.locator('#retry')).toHaveCSS('height', '30px')
121121
await expect(window.locator('#retry')).toHaveCSS('border-radius', '8px')
122+
await expect(window.locator('#retry')).toHaveCSS('padding-left', '8px')
123+
await expect(window.locator('#retry')).toHaveCSS('font-size', '14px')
124+
await expect(window.locator('#retry')).toHaveCSS('line-height', '20px')
125+
await expect(window.locator('#retry')).toHaveCSS('text-align', 'left')
122126
})
123127
})

apps/desktop/static/offline.html

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
color: var(--text-primary);
4444
font-family: 'Season Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
4545
-webkit-font-smoothing: antialiased;
46-
letter-spacing: 0.02em;
4746
user-select: none;
4847
}
4948
header {
@@ -105,7 +104,7 @@
105104
display: inline-flex;
106105
height: 30px;
107106
align-items: center;
108-
justify-content: center;
107+
gap: 6px;
109108
appearance: none;
110109
border: 0;
111110
background: transparent;
@@ -115,13 +114,26 @@
115114
font: inherit;
116115
font-size: 14px;
117116
line-height: 20px;
117+
text-align: left;
118118
cursor: pointer;
119119
outline: none;
120120
transition:
121121
color 150ms cubic-bezier(0.4, 0, 0.2, 1),
122-
background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
122+
background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
123+
border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
124+
text-decoration-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
125+
fill 150ms cubic-bezier(0.4, 0, 0.2, 1),
126+
stroke 150ms cubic-bezier(0.4, 0, 0.2, 1);
123127
-webkit-app-region: no-drag;
124128
}
129+
button .label {
130+
min-width: 0;
131+
flex: 1;
132+
overflow: hidden;
133+
color: currentColor;
134+
text-overflow: ellipsis;
135+
white-space: nowrap;
136+
}
125137
button.primary {
126138
background: var(--text-primary);
127139
color: var(--text-inverse);
@@ -177,8 +189,8 @@ <h1 id="title">Can’t connect to Sim</h1>
177189
Sim couldn’t reach the server. Check your internet connection, then try again.
178190
</p>
179191
<div class="actions">
180-
<button class="primary" id="retry">Retry</button>
181-
<button class="secondary" id="status">Check status</button>
192+
<button class="primary" id="retry"><span class="label">Retry</span></button>
193+
<button class="secondary" id="status"><span class="label">Check status</span></button>
182194
</div>
183195
<div id="detail" role="status"></div>
184196
</div>

0 commit comments

Comments
 (0)