mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-14 00:40:25 +00:00
Merge pull request #1185 from mrcanelas/fix/windows-emoji-rendering
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
feat(ui): add Twemoji font fallback for country flags on Windows
This commit is contained in:
commit
4e735afacc
3 changed files with 8 additions and 2 deletions
BIN
assets/fonts/TwemojiFlags.woff2
Normal file
BIN
assets/fonts/TwemojiFlags.woff2
Normal file
Binary file not shown.
|
|
@ -8,6 +8,12 @@
|
|||
src: url('/assets/fonts/PlusJakartaSans.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'TwemojiFlags';
|
||||
src: url('/assets/fonts/TwemojiFlags.woff2') format('woff2');
|
||||
unicode-range: U+1F1E6-1F1FF;
|
||||
}
|
||||
|
||||
:global {
|
||||
@import (once, less) '~stremio/common/animations.less';
|
||||
@import (once, less) '~stremio-router/styles.css';
|
||||
|
|
@ -151,7 +157,7 @@ svg {
|
|||
html {
|
||||
width: @html-width;
|
||||
height: @html-height;
|
||||
font-family: 'PlusJakartaSans', 'Arial', 'Helvetica', 'sans-serif';
|
||||
font-family: 'PlusJakartaSans', 'Arial', 'Helvetica', 'TwemojiFlags', 'sans-serif';
|
||||
overflow: auto;
|
||||
overscroll-behavior: none;
|
||||
user-select: none;
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ module.exports = (env, argv) => ({
|
|||
]
|
||||
},
|
||||
{
|
||||
test: /\.ttf$/,
|
||||
test: /\.(ttf|woff2)$/,
|
||||
exclude: /node_modules/,
|
||||
type: 'asset/resource',
|
||||
generator: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue