Skip to content

Commit

Permalink
fix(ui): color mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
rishikanthc committed Oct 21, 2024
1 parent 7686613 commit 1c70205
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/MDsvexRenderer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
/* For inline code */
:global(p code) {
@apply bg-carbongray-400 px-1 py-0.5;
@apply bg-carbongray-100 rounded-sm px-1 py-0.5;
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
Expand Down
17 changes: 11 additions & 6 deletions src/lib/components/TagBar.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { afterNavigate, beforeNavigate } from '$app/navigation';
import { Tags } from 'lucide-svelte';
import { Button } from '$lib/components/ui/button';
import { ScrollArea } from '$lib/components/ui/scroll-area/index.js';
import { afterNavigate, beforeNavigate } from "$app/navigation";
import { Tags } from "lucide-svelte";
import { Button } from "$lib/components/ui/button";
import { ScrollArea } from "$lib/components/ui/scroll-area/index.js";
export let tags;
let hidden = true;
Expand All @@ -21,12 +21,17 @@
</Button>

<ScrollArea
class={`${hidden ? 'hidden' : ''} fixed right-4 top-9 h-[500px] w-[200px] rounded-sm bg-carbongray-100 p-2 shadow`}
class={`${hidden ? "hidden" : ""} fixed right-4 top-9 h-[500px] w-[200px] rounded-sm bg-carbongray-50 dark:bg-carbongray-700 p-2 shadow`}
>
<div class="flex flex-col justify-center gap-2 p-2">
<div class="my-2 text-base font-bold">TAGS</div>
{#each tags as tag (tag.name)}
<div><a class="text-primary" href="/tags/{tag.name}">#{tag.name}</a></div>
<div>
<a
class="text-primary hover:bg-carbongray-100 w-full p-1 rounded-sm dark:hover:bg-carbongray-600"
href="/tags/{tag.name}">#{tag.name}</a
>
</div>
{/each}
</div>
</ScrollArea>

0 comments on commit 1c70205

Please sign in to comment.