Skip to content

Commit 88fc61d

Browse files
committed
fix: missing font once packaged with vite
1 parent 7438176 commit 88fc61d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/webui/src/client/ui/SegmentTimeline/TimelineGrid.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ declare class FontFace {
2121
load(): void
2222
}
2323

24-
const LABEL_FONT_URL = 'url("/fonts/roboto-gh-pages/fonts/Light/Roboto-Light.woff")'
24+
const LABEL_FONT_URL = `url("${new URL(
25+
'../../../fonts/roboto-gh-pages/fonts/Light/Roboto-Light.woff2',
26+
import.meta.url
27+
)}")`
2528
const LABEL_COLOR = 'rgb(80,80,80)'
2629
const SHORT_LINE_GRID_COLOR = 'rgb(112,112,112)'
2730
const LONG_LINE_GRID_COLOR = 'rgb(80,80,80)'

0 commit comments

Comments
 (0)