Change titles to font-weight semibold

This commit is contained in:
Sebastian Martinez
2024-01-23 10:14:37 +01:00
parent 20f895df6e
commit 196beca898
9 changed files with 47 additions and 11 deletions
+7 -1
View File
@@ -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>
+1 -1
View File
@@ -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,
);
}
+2 -4
View File
@@ -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"}