-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better styling of the list preview when there's an open post
- Loading branch information
Showing
2 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{#if mode === 'list' && $postListLayoutContentPreview} | ||
<PostEmbed {postView} preview reflectRead /> | ||
<PostBody {postView} preview reflectRead dedupeEmbed /> | ||
{/if} | ||
|
||
<script lang="ts"> | ||
import type { PostView } from 'lemmy-js-client'; | ||
import PostEmbed from '../PostEmbed.svelte'; | ||
import PostBody from './PostBody.svelte'; | ||
import { getSettingsContext } from '$lib/settings-context'; | ||
export let mode: 'show' | 'list' = 'list'; | ||
export let postView: PostView; | ||
const { postListLayoutContentPreview } = getSettingsContext(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters