Skip to content

Commit f428e6c

Browse files
fix: UI for Safari
1 parent 2b960d7 commit f428e6c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

polyfill/cos-polyfill.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
font-family: system-ui, sans-serif;
5252
font-size: 14px;
5353
border: none;
54+
block-size: 100%;
5455
width: fit-content;
5556
max-width: 500px;
5657
}
@@ -65,9 +66,15 @@
6566
}
6667
section {
6768
display: flex;
68-
align-items: anchor-center;
69+
align-items: center;
6970
gap: 10px;
7071
}
72+
73+
@supports (align-items: anchor-center) {
74+
section {
75+
align-items: anchor-center;
76+
}
77+
}
7178
@media (prefers-color-scheme: dark) {
7279
dialog {
7380
color: #c7c7c7;

0 commit comments

Comments
 (0)