misc: Minor design tweaks

This commit is contained in:
Xyphyn committed 2023-07-18 11:34:32 -07:00
1 parent 3bb849cb4b
commit 9d21f6331a
14 files changed
+25 -26

No files matched your search

+1 -1
View File
@@ -30,6 +30,6 @@
<Navbar />
<ToastContainer />
<div class="mx-auto max-w-5xl p-4 h-full">
<div class="mx-auto max-w-5xl p-2 md:p-4 h-full">
<slot />
</div>
+4 -1
View File
@@ -4,10 +4,11 @@
import Button from '$lib/components/input/Button.svelte'
import StickyCard from '$lib/components/ui/StickyCard.svelte'
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
import Post from '$lib/components/lemmy/Post.svelte'
import Post from '$lib/components/lemmy/post/Post.svelte'
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
import { fly, scale } from 'svelte/transition'
import Spinner from '$lib/components/ui/loader/Spinner.svelte'
import { authData } from '$lib/lemmy.js'
export let data
</script>
@@ -18,9 +19,11 @@
<div class="flex flex-row gap-4 w-full">
<div class="flex flex-col gap-4 max-w-full w-full min-w-0">
<h1 class="text-3xl font-bold">Frontpage</h1>
<div class="flex flex-col sm:flex-row gap-4 max-w-full w-full">
<MultiSelect
options={['Subscribed', 'Local', 'All']}
disabled={[$authData?.token == undefined]}
selected={$page.url.searchParams.get('type') ?? 'Local'}
on:select={(e) => {
const url = $page.url
+4 -1
View File
@@ -2,7 +2,7 @@
import { page } from '$app/stores'
import Link from '$lib/components/input/Link.svelte'
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
import Post from '../../../lib/components/lemmy/Post.svelte'
import Post from '../../../lib/components/lemmy/post/Post.svelte'
import { goto } from '$app/navigation'
import Card from '$lib/components/ui/StickyCard.svelte'
import CommunityCard from '$lib/components/community/CommunityCard.svelte'
@@ -43,6 +43,9 @@
</details>
</div>
<div class="flex flex-col gap-4 max-w-full w-full">
<h1 class="text-2xl font-bold">
{data.community.community_view.community.title}
</h1>
<div class="flex flex-col sm:flex-row gap-4 max-w-full w-full">
<MultiSelect
options={['Active', 'Hot', 'TopAll', 'New']}
+3 -11
View File
@@ -1,26 +1,18 @@
<script lang="ts">
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
import type { Comment, CommentView } from 'lemmy-js-client'
import {
buildCommentsTree,
type CommentNodeI,
} from '$lib/components/lemmy/comment/comments.js'
import { buildCommentsTree } from '$lib/components/lemmy/comment/comments.js'
import Comments from '$lib/components/lemmy/comment/Comments.svelte'
import CommunityLink from '$lib/components/community/CommunityLink.svelte'
import { isImage, isVideo } from '$lib/ui/image.js'
import { isImage } from '$lib/ui/image.js'
import { authData, getClient, user } from '$lib/lemmy.js'
import CommentForm from '$lib/components/lemmy/comment/CommentForm.svelte'
import PostVote from '$lib/components/lemmy/PostVote.svelte'
import { onMount } from 'svelte'
import UserLink from '$lib/components/user/UserLink.svelte'
import Markdown from '$lib/components/markdown/Markdown.svelte'
import Avatar from '$lib/components/ui/Avatar.svelte'
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
import CommunityCard from '$lib/components/community/CommunityCard.svelte'
import Button from '$lib/components/input/Button.svelte'
import { page } from '$app/stores'
import PostActions from '$lib/components/lemmy/PostActions.svelte'
import Loading from '$lib/components/ui/loader/Loading.svelte'
import PostActions from '$lib/components/lemmy/post/PostActions.svelte'
import Badge from '$lib/components/ui/Badge.svelte'
import { Bookmark, Icon, InformationCircle, Trash } from 'svelte-hero-icons'
import Link from '$lib/components/input/Link.svelte'
+1 -1
View File
@@ -2,7 +2,7 @@
import type { CommentView, PostView } from 'lemmy-js-client'
import InboxItem from '../inbox/InboxItem.svelte'
import Card from '$lib/components/ui/Card.svelte'
import Post from '$lib/components/lemmy/Post.svelte'
import Post from '$lib/components/lemmy/post/Post.svelte'
import CommunityLink from '$lib/components/community/CommunityLink.svelte'
import Link from '$lib/components/input/Link.svelte'
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
+2 -2
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import CommunityLink from '$lib/components/community/CommunityLink.svelte'
import Link from '$lib/components/input/Link.svelte'
import Post from '$lib/components/lemmy/Post.svelte'
import Post from '$lib/components/lemmy/post/Post.svelte'
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
import Markdown from '$lib/components/markdown/Markdown.svelte'
import Avatar from '$lib/components/ui/Avatar.svelte'
@@ -108,7 +108,7 @@
{data.user.person_view.person.display_name ??
data.user.person_view.person.name}
</h1>
<span class="text-sm opacity-80">
<span class="text-sm opacity-80 flex flex-row gap-0">
{#if data.user.person_view.person.display_name}
{data.user.person_view.person.name}@
{/if}