fix: t h e s q u a r e

This commit is contained in:
Xylight committed 2023-11-14 20:09:45 -08:00
1 parent 5f8c1ed05a
commit a6bf0c996b
2 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "photon-lemmy", "name": "photon-lemmy",
"version": "1.21.0", "version": "1.21.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
+13 -13
View File
@@ -1,10 +1,10 @@
<script lang="ts"> <script lang="ts">
import CommunityLink from "$lib/components/lemmy/community/CommunityLink.svelte" import CommunityLink from '$lib/components/lemmy/community/CommunityLink.svelte'
import Avatar from "$lib/components/ui/Avatar.svelte" import Avatar from '$lib/components/ui/Avatar.svelte'
import { Badge } from "mono-svelte" import { Badge } from 'mono-svelte'
import UserLink from "$lib/components/lemmy/user/UserLink.svelte" import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
import RelativeDate from "$lib/components/util/RelativeDate.svelte" import RelativeDate from '$lib/components/util/RelativeDate.svelte'
import type { Community, Person, SubscribedType } from "lemmy-js-client" import type { Community, Person, SubscribedType } from 'lemmy-js-client'
import { import {
Bookmark, Bookmark,
Check, Check,
@@ -13,10 +13,10 @@
Megaphone, Megaphone,
Plus, Plus,
Trash, Trash,
} from "svelte-hero-icons" } from 'svelte-hero-icons'
import { getInstance } from "$lib/lemmy.js" import { getInstance } from '$lib/lemmy.js'
import { profile } from "$lib/auth.js" import { profile } from '$lib/auth.js'
import Subscribe from "../../../../routes/communities/Subscribe.svelte" import Subscribe from '../../../../routes/communities/Subscribe.svelte'
export let community: Community | undefined = undefined export let community: Community | undefined = undefined
export let subscribed: SubscribedType | undefined = undefined export let subscribed: SubscribedType | undefined = undefined
@@ -48,7 +48,7 @@
if (!community) return if (!community) return
await subscribe(community.id, subscribed) await subscribe(community.id, subscribed)
subscribed = subscribed =
subscribed == "NotSubscribed" ? "Subscribed" : "NotSubscribed" subscribed == 'NotSubscribed' ? 'Subscribed' : 'NotSubscribed'
}} }}
class="relative cursor-pointer" class="relative cursor-pointer"
> >
@@ -62,7 +62,7 @@
-bottom-1.5 -right-1.5 grid place-items-center transition-all" -bottom-1.5 -right-1.5 grid place-items-center transition-all"
> >
<Icon <Icon
src={subscribed == "NotSubscribed" ? Plus : Check} src={subscribed == 'NotSubscribed' ? Plus : Check}
mini mini
size="12" size="12"
/> />
@@ -100,7 +100,7 @@
</div> </div>
<div <div
class="flex flex-row ml-auto gap-2 flex-shrink overflow-scroll [&>*]:flex-shrink-0" class="flex flex-row ml-auto gap-2 flex-shrink overflow-auto [&>*]:flex-shrink-0"
> >
{#if nsfw} {#if nsfw}
<Badge color="red-subtle">NSFW</Badge> <Badge color="red-subtle">NSFW</Badge>