Fix reactions spacing

This commit is contained in:
dnlklmn
2024-01-19 18:51:37 +00:00
committed by Rūdolfs Ošiņš
parent b8b2bb5031
commit 20f895df6e
5 changed files with 34 additions and 29 deletions
+1 -1
View File
@@ -90,7 +90,7 @@
align-items: center;
gap: 0.5rem;
padding-left: 2rem;
height: 22px;
margin-left: -0.25rem;
}
.edit-buttons {
display: flex;
+2
View File
@@ -5,6 +5,7 @@
export let inline: boolean = false;
export let loading: boolean = false;
export let title: string | undefined = undefined;
export let stylePadding: string | undefined = undefined;
</script>
<style>
@@ -35,6 +36,7 @@
{:else}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
style:padding={stylePadding}
role="button"
tabindex="0"
aria-label={ariaLabel}
+28 -25
View File
@@ -40,29 +40,32 @@
}
</style>
<Popover
popoverPositionBottom="2rem"
popoverPositionLeft="0"
popoverPadding="0">
<IconButton
slot="toggle"
let:toggle
on:click={toggle}
title="toggle-reaction-popover">
<IconSmall name="face" />
</IconButton>
<div style="margin-top: 0.875rem;">
<Popover
popoverPositionBottom="2rem"
popoverPositionLeft="0"
popoverPadding="0">
<IconButton
stylePadding="4px"
slot="toggle"
let:toggle
on:click={toggle}
title="toggle-reaction-popover">
<IconSmall name="face" />
</IconButton>
<div class="selector" slot="popover">
{#each config.reactions as reaction}
<button
class:active={Boolean(reactions?.get(reaction)?.self)}
on:click={() =>
dispatch("select", {
nids: reactions?.get(reaction)?.all ?? [],
reaction,
})}>
{reaction}
</button>
{/each}
</div>
</Popover>
<div class="selector" slot="popover">
{#each config.reactions as reaction}
<button
class:active={Boolean(reactions?.get(reaction)?.self)}
on:click={() =>
dispatch("select", {
nids: reactions?.get(reaction)?.all ?? [],
reaction,
})}>
{reaction}
</button>
{/each}
</div>
</Popover>
</div>
+1
View File
@@ -14,6 +14,7 @@
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 0.875rem;
}
.reaction {
display: inline-flex;
+2 -3
View File
@@ -408,7 +408,6 @@
display: flex;
flex: 1;
flex-direction: column;
gap: 1.5rem;
background-color: var(--color-background-float);
}
.bottom {
@@ -460,8 +459,8 @@
.reactions {
display: flex;
gap: 0.5rem;
height: 22px;
margin-top: 1rem;
align-items: center;
margin-left: -0.25rem;
}
@media (max-width: 720px) {