diff --git a/public/index.css b/public/index.css index fbac4f002..ccd3f3127 100644 --- a/public/index.css +++ b/public/index.css @@ -61,6 +61,7 @@ body { height: 1.5rem; padding: 0 0.5rem; min-width: 1.5rem; + font-weight: var(--font-weight-regular); } :root { diff --git a/src/components/Border.svelte b/src/components/Border.svelte index bd5b4152a..7a48abe45 100644 --- a/src/components/Border.svelte +++ b/src/components/Border.svelte @@ -14,6 +14,9 @@ styleGap?: string; styleOverflow?: string; flatTop?: boolean; + styleBackgroundColor?: string; + styleFlexDirection?: string; + styleJustifyContent?: string; } const { @@ -29,11 +32,15 @@ styleGap = "0.5rem", styleOverflow, flatTop = false, + styleBackgroundColor = "var(--color-background-default)", + styleFlexDirection = "row", + styleJustifyContent, }: Props = $props(); const style = $derived( - `--local-button-color-1: var(--color-fill-${variant});` + - `--local-hover-background-color: ${hoverable ? "var(--color-background-float)" : "var(--color-background-default)"}`, + `--local-background-color: ${styleBackgroundColor};` + + `--local-button-color-1: var(--color-fill-${variant});` + + `--local-hover-background-color: ${hoverable ? "var(--color-background-float)" : styleBackgroundColor}`, ); @@ -97,7 +104,7 @@ } .p2-3 { grid-area: p2-3; - background-color: var(--color-background-default); + background-color: var(--local-background-color); } .p2-4 { grid-area: p2-4; @@ -114,17 +121,17 @@ } .p3-2 { grid-area: p3-2; - background-color: var(--color-background-default); + background-color: var(--local-background-color); } .p3-3 { grid-area: p3-3; display: flex; align-items: center; - background-color: var(--color-background-default); + background-color: var(--local-background-color); } .p3-4 { grid-area: p3-4; - background-color: var(--color-background-default); + background-color: var(--local-background-color); } .p3-5 { grid-area: p3-5; @@ -141,7 +148,7 @@ } .p4-3 { grid-area: p4-3; - background-color: var(--color-background-default); + background-color: var(--local-background-color); } .p4-4 { grid-area: p4-4; @@ -217,7 +224,9 @@ class="p3-3" style:padding={stylePadding} style:gap={styleGap} - style:overflow={styleOverflow}> + style:overflow={styleOverflow} + style:justify-content={styleJustifyContent} + style:flex-direction={styleFlexDirection}> {@render children()}
diff --git a/src/components/Comment.svelte b/src/components/Comment.svelte index dd658743e..56f2a9f4e 100644 --- a/src/components/Comment.svelte +++ b/src/components/Comment.svelte @@ -116,6 +116,7 @@ .edit-buttons { display: flex; gap: 0.25rem; + cursor: pointer; } @@ -143,7 +144,7 @@