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
@@ -44,6 +44,8 @@
|
||||
|
||||
return url
|
||||
}
|
||||
|
||||
export let bottomMenu = false
|
||||
</script>
|
||||
|
||||
<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} />
|
||||
<FormattedNumber number={post.counts.comments} />
|
||||
</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}>
|
||||
<Icon src={EllipsisHorizontal} width={16} mini />
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user