Skip to content

Commit b906d42

Browse files
authored
fix: material icons font file (#8366)
1 parent 8b0a816 commit b906d42

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

apps/web/core/components/project/publish-project/modal.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export const PublishProjectModal = observer(function PublishProjectModal(props:
177177
{isProjectPublished && (
178178
<Button
179179
variant="error-fill"
180+
size="lg"
180181
onClick={() => handleUnPublishProject(watch("id") ?? "")}
181182
loading={isUnPublishing}
182183
>
@@ -197,7 +198,7 @@ export const PublishProjectModal = observer(function PublishProjectModal(props:
197198
<div className="px-5 space-y-4">
198199
{isProjectPublished && projectPublishSettings && (
199200
<>
200-
<div className="bg-layer-1 border border-strong rounded-md py-1.5 pl-4 pr-1 flex items-center justify-between gap-2">
201+
<div className="border border-strong rounded-md py-1.5 pl-4 pr-1 flex items-center justify-between gap-2">
201202
<a
202203
href={publishLink}
203204
className="text-13 text-secondary truncate"
@@ -209,15 +210,15 @@ export const PublishProjectModal = observer(function PublishProjectModal(props:
209210
<div className="flex-shrink-0 flex items-center gap-1">
210211
<a
211212
href={publishLink}
212-
className="size-8 grid place-items-center bg-surface-2 hover:bg-surface-1 rounded-sm"
213+
className="size-8 grid place-items-center bg-layer-3 hover:bg-layer-3-hover rounded-sm"
213214
target="_blank"
214215
rel="noopener noreferrer"
215216
>
216217
<ExternalLink className="size-4" />
217218
</a>
218219
<button
219220
type="button"
220-
className="h-8 bg-surface-2 hover:bg-surface-1 rounded-sm text-11 font-medium py-2 px-3"
221+
className="h-8 bg-layer-3 hover:bg-layer-3-hover rounded-sm text-11 font-medium py-2 px-3"
221222
onClick={handleCopyLink}
222223
>
223224
Copy link
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MaterialSymbolsRounded[FILL,GRAD,opsz,wght].ttf: Copyright 2022, 2022 Google LLC. All Rights Reserved.
Binary file not shown.

packages/tailwind-config/variables.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
@import "@fontsource/ibm-plex-mono/500.css";
1212
@import "@fontsource/ibm-plex-mono/600.css";
1313
@import "@fontsource/ibm-plex-mono/700.css";
14-
@import "@fontsource/material-symbols-rounded/400.css";
1514

1615
@custom-variant dark (&:where([data-theme*="dark"], [data-theme*="dark"] *));
1716
@custom-variant dark-high-contrast (&:where([data-theme="dark-contrast"], [data-theme="dark-contrast"] *));
@@ -1152,6 +1151,15 @@
11521151
}
11531152
}
11541153

1154+
/* material-symbols-rounded-regular - latin */
1155+
@font-face {
1156+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
1157+
font-family: "Material Symbols Rounded";
1158+
font-style: normal;
1159+
font-weight: 400;
1160+
src: url("./fonts/material-symbols-rounded-v168-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
1161+
}
1162+
11551163
@utility material-symbols-rounded {
11561164
font-family: "Material Symbols Rounded";
11571165
font-weight: normal;

0 commit comments

Comments
 (0)