Skip to content

Commit

Permalink
chore: default false expanded state and render full content on expand
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Dec 25, 2024
1 parent 6475eca commit 1ed5afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/components/quib.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
const authStore = createAuthStore(),
viewStore = createViewStore();
let is_expanded = $state(is_valid(quib.content));
let is_expanded = $state(false);
const is_upvoted = $derived.by(check_if_upvoted);
function check_if_upvoted() {
Expand All @@ -40,7 +40,7 @@

{#snippet content_or_cover()}
{#if is_valid(quib.content)}
<p class="line-clamp-3 text-sm font-normal">
<p class="text-sm font-normal">
{quib.content}
</p>
{:else}
Expand Down

0 comments on commit 1ed5afc

Please sign in to comment.