misc: Change post menu to be bottom aligned
This commit is contained in:
1 parent
e410bb68d5
commit
05f7262745
3 files changed
+10
-4
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "23.7.14",
|
"version": "23.7.15",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -44,6 +44,8 @@
|
|||||||
|
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export let bottomMenu = false
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-row gap-2 items-center pt-2">
|
<div class="flex flex-row gap-2 items-center pt-2">
|
||||||
@@ -53,7 +55,11 @@
|
|||||||
<Icon slot="icon" src={ChatBubbleOvalLeft} mini width={16} height={16} />
|
<Icon slot="icon" src={ChatBubbleOvalLeft} mini width={16} height={16} />
|
||||||
<FormattedNumber number={post.counts.comments} />
|
<FormattedNumber number={post.counts.comments} />
|
||||||
</Link>
|
</Link>
|
||||||
<Menu top class="ml-auto overflow-auto" let:toggleOpen>
|
<Menu
|
||||||
|
top={bottomMenu ? false : true}
|
||||||
|
class="ml-auto overflow-auto"
|
||||||
|
let:toggleOpen
|
||||||
|
>
|
||||||
<Button slot="button" label="Post actions" on:click={toggleOpen}>
|
<Button slot="button" label="Post actions" on:click={toggleOpen}>
|
||||||
<Icon src={EllipsisHorizontal} width={16} mini />
|
<Icon src={EllipsisHorizontal} width={16} mini />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -108,8 +108,8 @@
|
|||||||
<Markdown source={post.body} />
|
<Markdown source={post.body} />
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="w-ful relative">
|
<div class="w-full relative">
|
||||||
<PostActions post={data.post.post_view} />
|
<PostActions bottomMenu post={data.post.post_view} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-4 flex flex-col gap-2">
|
<div class="mt-4 flex flex-col gap-2">
|
||||||
|
|||||||
Reference in new issue
Block a user