misc: make jump button more obvious
This commit is contained in:
1 parent
eb37a64a5a
commit
2cc8133e21
2 files changed
+9
-7
No files matched your search
@@ -4,6 +4,7 @@
|
|||||||
import { publishedToDate } from '$lib/components/util/date.js'
|
import { publishedToDate } from '$lib/components/util/date.js'
|
||||||
import { getInstance } from '$lib/lemmy.js'
|
import { getInstance } from '$lib/lemmy.js'
|
||||||
import { userSettings } from '$lib/settings.js'
|
import { userSettings } from '$lib/settings.js'
|
||||||
|
import { t } from '$lib/translations'
|
||||||
import type { CommentView } from 'lemmy-js-client'
|
import type { CommentView } from 'lemmy-js-client'
|
||||||
import { Button, Material } from 'mono-svelte'
|
import { Button, Material } from 'mono-svelte'
|
||||||
import { ArrowUturnUp, Icon } from 'svelte-hero-icons'
|
import { ArrowUturnUp, Icon } from 'svelte-hero-icons'
|
||||||
@@ -42,13 +43,12 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
color="secondary"
|
color="primary"
|
||||||
href="/post/{comment.post.id}?thread={comment.comment.path}#{comment
|
href="/post/{comment.post.id}?thread={comment.comment.path}#{comment
|
||||||
.comment.id}"
|
.comment.id}"
|
||||||
size="square-md"
|
|
||||||
class="self-start"
|
class="self-start"
|
||||||
title="Jump"
|
|
||||||
>
|
>
|
||||||
|
{$t('common.jump')}
|
||||||
<Icon src={ArrowUturnUp} size="16" micro />
|
<Icon src={ArrowUturnUp} size="16" micro />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Disclosure } from 'mono-svelte'
|
import { Disclosure } from 'mono-svelte'
|
||||||
import { ChevronDown, Icon } from 'svelte-hero-icons'
|
import { Minus, Plus, Icon } from 'svelte-hero-icons'
|
||||||
export let open: boolean = false
|
export let open: boolean = false
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -17,10 +17,12 @@
|
|||||||
<slot name="title" />
|
<slot name="title" />
|
||||||
</div>
|
</div>
|
||||||
<Icon
|
<Icon
|
||||||
src={ChevronDown}
|
src={open ? Minus : Plus}
|
||||||
size="20"
|
size="16"
|
||||||
micro
|
micro
|
||||||
class="{open ? 'rotate-180' : ''} transition-transform"
|
class="{open
|
||||||
|
? ''
|
||||||
|
: 'rotate-90'} transition-transform duration-300 ease-out"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
class="inset-0 -z-10 opacity-0 absolute bg-slate-100 dark:bg-zinc-900 rounded-full
|
class="inset-0 -z-10 opacity-0 absolute bg-slate-100 dark:bg-zinc-900 rounded-full
|
||||||
|
|||||||
Reference in new issue
Block a user