feat: update mono to 0.3.3
This commit is contained in:
1 parent
c60b1b3c02
commit
9b1ef7637b
7 files changed
+17
-32
No files matched your search
+1
-1
@@ -43,7 +43,7 @@
|
||||
"@dicebear/initials": "^6.0.4",
|
||||
"lemmy-js-client": "^0.18.0-rc.2",
|
||||
"markdown-it": "^13.0.1",
|
||||
"mono-svelte": "^0.3.2"
|
||||
"mono-svelte": "^0.3.3"
|
||||
},
|
||||
"type": "module"
|
||||
}
|
||||
@@ -30,7 +30,10 @@
|
||||
>
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<div id={post.post.id.toString()} class="relative flex flex-col gap-2.5">
|
||||
<div
|
||||
class="absolute -inset-x-2 md:-inset-x-4 inset-y-2 scale-95 opacity-0 bg-slate-100 dark:bg-zinc-900
|
||||
-z-10 rounded-xl group-hover:opacity-100 group-hover:scale-100 transition-all"
|
||||
/>
|
||||
<div
|
||||
class="flex {$userSettings.leftAlign
|
||||
? 'flex-row-reverse'
|
||||
@@ -167,5 +170,4 @@
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</Material>
|
||||
@@ -7,6 +7,7 @@
|
||||
Bookmark,
|
||||
BookmarkSlash,
|
||||
BugAnt,
|
||||
ChatBubbleOvalLeft,
|
||||
ChatBubbleOvalLeftEllipsis,
|
||||
EllipsisHorizontal,
|
||||
Eye,
|
||||
@@ -75,12 +76,10 @@
|
||||
</Modal>
|
||||
{/if}
|
||||
|
||||
<div class="flex flex-row gap-2 items-center h-8">
|
||||
<div class="flex flex-row gap-2 items-center h-8 z-10">
|
||||
<PostVote
|
||||
post={post.post}
|
||||
bind:vote={post.my_vote}
|
||||
bind:upvotes={post.counts.upvotes}
|
||||
bind:downvotes={post.counts.downvotes}
|
||||
bind:score={post.counts.score}
|
||||
/>
|
||||
|
||||
@@ -89,7 +88,7 @@
|
||||
href="/post/{getInstance()}/{post.post.id}"
|
||||
class="!text-inherit h-8 px-3"
|
||||
>
|
||||
<Icon slot="prefix" src={ChatBubbleOvalLeftEllipsis} mini size="16" />
|
||||
<Icon slot="prefix" src={ChatBubbleOvalLeft} mini size="14" />
|
||||
<FormattedNumber number={post.counts.comments} />
|
||||
</Button>
|
||||
<div class="ml-auto" />
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div
|
||||
class="flex flex-col {$userSettings.view == 'card'
|
||||
? 'gap-3 md:gap-4'
|
||||
: ''} divide-slate-200 dark:divide-zinc-800"
|
||||
: ''} divide-slate-200 dark:divide-zinc-800 z-[5]"
|
||||
class:divide-y={$userSettings.view == 'compact' ||
|
||||
$userSettings.view == 'list'}
|
||||
>
|
||||
|
||||
@@ -13,12 +13,10 @@
|
||||
} from 'svelte-hero-icons'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { vote as voteItem } from '$lib/lemmy/contentview.js'
|
||||
import { Button, Popover } from 'mono-svelte'
|
||||
import { Button, Material, Popover } from 'mono-svelte'
|
||||
|
||||
export let post: Post
|
||||
export let vote: number = 0
|
||||
export let upvotes: number = 0
|
||||
export let downvotes: number = 0
|
||||
export let score: number
|
||||
|
||||
const voteColor = (vote: number, border: boolean = false) =>
|
||||
@@ -26,11 +24,9 @@
|
||||
</script>
|
||||
|
||||
<slot {vote} {score}>
|
||||
<Popover targetClass="h-8" openOnHover>
|
||||
<div
|
||||
class=" flex items-center text-sm gap-1 rounded-md border border-slate-200
|
||||
dark:border-zinc-700 px-1 h-8 duration-200 dark:bg-zinc-900"
|
||||
slot="target"
|
||||
dark:border-zinc-800 bg-white dark:bg-zinc-900 px-1 h-8 cursor-pointer"
|
||||
>
|
||||
<Button
|
||||
aria-label="Upvote"
|
||||
@@ -46,9 +42,7 @@
|
||||
>
|
||||
<Icon src={ChevronUp} mini size="18" />
|
||||
</Button>
|
||||
<span
|
||||
class="font-medium transition-colors duration-200 {voteColor(vote)}"
|
||||
>
|
||||
<span class="font-medium transition-colors duration-200 {voteColor(vote)}">
|
||||
<FormattedNumber number={score} />
|
||||
</span>
|
||||
<Button
|
||||
@@ -65,15 +59,4 @@
|
||||
<Icon src={ChevronDown} mini size="18" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="flex flex-row items-center gap-2">
|
||||
<span class="flex items-center gap-1 text-blue-500 font-medium">
|
||||
<Icon src={ArrowUp} mini size="18" />
|
||||
<FormattedNumber number={upvotes} />
|
||||
</span>
|
||||
<span class="flex items-center gap-1 text-red-500 font-medium">
|
||||
<Icon src={ArrowDown} mini size="18" />
|
||||
<FormattedNumber number={downvotes} />
|
||||
</span>
|
||||
</div>
|
||||
</Popover>
|
||||
</slot>
|
||||
@@ -23,6 +23,7 @@ export default {
|
||||
},
|
||||
colors: {
|
||||
slate: {
|
||||
200: '#e8edf4',
|
||||
25: 'rgb(252,253,254)',
|
||||
},
|
||||
zinc: {
|
||||
|
||||
@@ -3023,10 +3023,10 @@ mlly@^1.2.0, mlly@^1.4.0:
|
||||
pkg-types "^1.0.3"
|
||||
ufo "^1.1.2"
|
||||
|
||||
mono-svelte@^0.3.2:
|
||||
version "0.3.2"
|
||||
resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-0.3.2.tgz#646a247698b7aac4cd8c6c0d03ad448081e6b310"
|
||||
integrity sha512-CiJzyCtQ6xM8XXhowyqIqCp8R4Q7IVDHbg7Ly+W5QSjfaBRYFbv2L/qhi0FkvBzQ6WOSoCK8Lz0vN81WbaPbyA==
|
||||
mono-svelte@^0.3.3:
|
||||
version "0.3.3"
|
||||
resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-0.3.3.tgz#001a4f0d95f4a33f7bb0c7e3b5681eb1ff21eabd"
|
||||
integrity sha512-EmGgBESe0YiVAbolHFZ+/JWiAnqPqcwhJS1kNQCJjoSEY1VDPxswkZQ60yJHZad34U6jaYbRZRU2Mop1Xa7eYA==
|
||||
|
||||
mri@^1.1.0:
|
||||
version "1.2.0"
|
||||
|
||||
Reference in new issue
Block a user