Merge pull request #428 from sevonj/post-moreactions-oveflow-wrap

PostActions fix overflow and wrap
This commit is contained in:
Xylight authored and GitHub committed 2024-09-07 07:27:04 -07:00
commit 2b0d36ef43
1 file changed
+6 -6
@@ -225,16 +225,16 @@
link link
href="/u/{post.creator.name}@{new URL(post.creator.actor_id).hostname}" href="/u/{post.creator.name}@{new URL(post.creator.actor_id).hostname}"
> >
<Icon src={UserCircle} size="16" micro slot="prefix" /> <Icon src={UserCircle} size="16" micro slot="prefix" class="flex-shrink-0" />
<span>{post.creator.name}</span> <span class="overflow-hidden overflow-ellipsis whitespace-nowrap">{post.creator.name}</span>
</MenuButton> </MenuButton>
<MenuButton <MenuButton
link link
href="/c/{post.community.name}@{new URL(post.community.actor_id) href="/c/{post.community.name}@{new URL(post.community.actor_id)
.hostname}" .hostname}"
> >
<Icon src={Newspaper} size="16" micro slot="prefix" /> <Icon src={Newspaper} size="16" micro slot="prefix" class="flex-shrink-0" />
<span>{post.community.title}</span> <span class="overflow-hidden overflow-ellipsis whitespace-nowrap">{post.community.title}</span>
</MenuButton> </MenuButton>
<MenuButton <MenuButton
loading={fediseerLoading} loading={fediseerLoading}
@@ -256,10 +256,10 @@
{#if fediseerLoading} {#if fediseerLoading}
<Spinner width={14} /> <Spinner width={14} />
{:else} {:else}
<Icon src={ServerStack} size="16" micro /> <Icon src={ServerStack} size="16" micro class="flex-shrink-0" />
{/if} {/if}
</svelte:fragment> </svelte:fragment>
<span>{new URL(post.community.actor_id).hostname}</span> <span class="overflow-hidden overflow-ellipsis whitespace-nowrap">{new URL(post.community.actor_id).hostname}</span>
</MenuButton> </MenuButton>
<hr class="w-[90%] mx-auto opacity-100 dark:opacity-10 my-2" /> <hr class="w-[90%] mx-auto opacity-100 dark:opacity-10 my-2" />
<MenuDivider>{$t('post.actions.more.actions')}</MenuDivider> <MenuDivider>{$t('post.actions.more.actions')}</MenuDivider>