mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Change titles to font-weight semibold
This commit is contained in:
@@ -3,13 +3,19 @@
|
||||
|
||||
import markdown from "@app/lib/markdown";
|
||||
import { twemoji } from "@app/lib/utils";
|
||||
import { Renderer } from "@app/lib/markdown";
|
||||
|
||||
export let content: string;
|
||||
export let stripEmphasizedStyling: boolean = false;
|
||||
export let fontSize: "tiny" | "small" | "regular" | "medium" | "large" =
|
||||
"small";
|
||||
|
||||
const render = (content: string): string =>
|
||||
dompurify.sanitize(markdown.parseInline(content) as string);
|
||||
dompurify.sanitize(
|
||||
markdown.parseInline(content, {
|
||||
renderer: new Renderer(undefined, stripEmphasizedStyling),
|
||||
}) as string,
|
||||
);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
function render(content: string): string {
|
||||
return dompurify.sanitize(
|
||||
markdown.parse(content, {
|
||||
renderer: new Renderer(linkBaseUrl),
|
||||
renderer: new Renderer(linkBaseUrl, false),
|
||||
}) as string,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -83,9 +83,7 @@
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
.name {
|
||||
white-space: nowrap;
|
||||
overflow-x: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
.rid {
|
||||
visibility: hidden;
|
||||
@@ -107,7 +105,7 @@
|
||||
<div class="left">
|
||||
<div class="text">
|
||||
<div class="title">
|
||||
<span class="name" title={name}>
|
||||
<span class="name txt-overflow" title={name}>
|
||||
{name}
|
||||
</span>
|
||||
{#if visibility === "private"}
|
||||
|
||||
Reference in New Issue
Block a user