mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-01 16:51:13 +00:00
parent
f90fa6dd3b
commit
6e3a6a601b
5 changed files with 258 additions and 263 deletions
|
@ -376,7 +376,7 @@ br.big {
|
||||||
}
|
}
|
||||||
|
|
||||||
.modlog-choices-font-size {
|
.modlog-choices-font-size {
|
||||||
font-size: .9375rem !important;
|
font-size: 0.9375rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-lines {
|
.preview-lines {
|
||||||
|
|
252
src/assets/symbols.svg
Normal file
252
src/assets/symbols.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 52 KiB |
|
@ -12,7 +12,6 @@ import path from "path";
|
||||||
import process from "process";
|
import process from "process";
|
||||||
import serialize from "serialize-javascript";
|
import serialize from "serialize-javascript";
|
||||||
import { App } from "../shared/components/app/app";
|
import { App } from "../shared/components/app/app";
|
||||||
import { SYMBOLS } from "../shared/components/common/symbols";
|
|
||||||
import { httpBaseInternal } from "../shared/env";
|
import { httpBaseInternal } from "../shared/env";
|
||||||
import {
|
import {
|
||||||
ILemmyConfig,
|
ILemmyConfig,
|
||||||
|
@ -186,7 +185,6 @@ server.get("/*", async (req, res) => {
|
||||||
);
|
);
|
||||||
const erudaStr = process.env["LEMMY_UI_DEBUG"] ? renderToString(eruda) : "";
|
const erudaStr = process.env["LEMMY_UI_DEBUG"] ? renderToString(eruda) : "";
|
||||||
const root = renderToString(wrapper);
|
const root = renderToString(wrapper);
|
||||||
const symbols = renderToString(SYMBOLS);
|
|
||||||
const helmet = Helmet.renderStatic();
|
const helmet = Helmet.renderStatic();
|
||||||
|
|
||||||
const config: ILemmyConfig = { wsHost: process.env.LEMMY_UI_LEMMY_WS_HOST };
|
const config: ILemmyConfig = { wsHost: process.env.LEMMY_UI_LEMMY_WS_HOST };
|
||||||
|
@ -221,9 +219,6 @@ server.get("/*", async (req, res) => {
|
||||||
<!-- Current theme and more -->
|
<!-- Current theme and more -->
|
||||||
${helmet.link.toString()}
|
${helmet.link.toString()}
|
||||||
|
|
||||||
<!-- Icons -->
|
|
||||||
${symbols}
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body ${helmet.bodyAttributes.toString()}>
|
<body ${helmet.bodyAttributes.toString()}>
|
||||||
|
|
|
@ -22,7 +22,9 @@ export class Icon extends Component<IconProps, any> {
|
||||||
small: this.props.small,
|
small: this.props.small,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<use xlinkHref={`#icon-${this.props.icon}`}></use>
|
<use
|
||||||
|
xlinkHref={`/static/assets/symbols.svg#icon-${this.props.icon}`}
|
||||||
|
></use>
|
||||||
<div className="sr-only">
|
<div className="sr-only">
|
||||||
<title>{this.props.icon}</title>
|
<title>{this.props.icon}</title>
|
||||||
</div>
|
</div>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue