Skip to content

Commit

Permalink
fix(adminui): resolve reverse proxy paths for fonts
Browse files Browse the repository at this point in the history
fixes #543
  • Loading branch information
sentriz committed Jan 15, 2025
1 parent c222ecb commit 718686a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
18 changes: 18 additions & 0 deletions server/ctrladmin/adminui/components.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@
<head>
<meta charset="utf-8">
<title>gonic</title>
<style>
@font-face {
font-family: "Inconsolata";
font-style: normal;
font-weight: 500;
src: local(""),
url("{{ path "/admin/static/inconsolata-v31-latin-500.woff2" }}") format("woff2"),
url("{{ path "/admin/static/inconsolata-v31-latin-500.woff" }}") format("woff");
}
@font-face {
font-family: "Inconsolata";
font-style: normal;
font-weight: 600;
src: local(""),
url("{{ path "/admin/static/inconsolata-v31-latin-600.woff2" }}") format("woff2"),
url("{{ path "/admin/static/inconsolata-v31-latin-600.woff" }}") format("woff");
}
</style>
<link rel="stylesheet" href="{{ path "/admin/static/style.css" | noCache }}">
<link rel="shortcut icon" href="{{ path "/admin/static/favicon.ico" }}" type="image/x-icon">
<link rel="icon" href="{{ path "/admin/static/favicon.ico" }}" type="image/x-icon">
Expand Down
2 changes: 1 addition & 1 deletion server/ctrladmin/adminui/static/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions server/ctrladmin/adminui/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@ a {
text-decoration: none;
}

@font-face {
font-family: "Inconsolata";
font-style: normal;
font-weight: 500;
src: local(""),
url("/admin/static/inconsolata-v31-latin-500.woff2") format("woff2"),
url("/admin/static/inconsolata-v31-latin-500.woff") format("woff");
}

@font-face {
font-family: "Inconsolata";
font-style: normal;
font-weight: 600;
src: local(""),
url("/admin/static/inconsolata-v31-latin-600.woff2") format("woff2"),
url("/admin/static/inconsolata-v31-latin-600.woff") format("woff");
}

@tailwind components;
@tailwind utilities;

Expand Down

0 comments on commit 718686a

Please sign in to comment.