Skip to content

Commit

Permalink
style:阿里普惠体全局应用
Browse files Browse the repository at this point in the history
  • Loading branch information
QwQ-wuwuwu committed Jul 1, 2024
1 parent e75368f commit 60806ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,13 @@
}

@font-face {
font-family: text-security-disc;
font-family: AlibabaPuHuiTi-3-55-Regular;
/* src: url("assets/text-security-disc.woff") format("woff"); */
src: url("assets/AlibabaPuHuiTi-3-55-Regular.otf") format("otf");
src: url("assets/AlibabaPuHuiTi-3-55-Regular.otf") format("opentype");
}

:root {
--font-sans: 'AlibabaPuHuiTi-3-55-Regular'
}

/* pdf-text */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function TaggingSheet({children}) {
{(provided) => (
<div ref={provided.innerRef} {...provided.draggableProps}
{...provided.dragHandleProps}>
{b.name}
{index + 1} + {b.name}
</div>
)}
</Draggable>
Expand Down
4 changes: 4 additions & 0 deletions src/frontend/src/style/applies.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
@apply border-border;
}

#root {
@apply font-sans;
}

body {
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
import svgr from "vite-plugin-svgr";

// Use environment variable to determine the target.
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7861";
const target = process.env.VITE_PROXY_TARGET || "http://192.168.106.120:3002";
const apiRoutes = ["^/api/", "/health"];

const proxyTargets = apiRoutes.reduce((proxyObj, route) => {
Expand Down

0 comments on commit 60806ad

Please sign in to comment.