impr: automatically mark as read inbox items when clicked

This commit is contained in:
Xylight committed 2025-10-06 19:20:59 -07:00
1 parent 75aa414c3b
commit c73cce8f8a
7 files changed
+93 -26

No files matched your search

@@ -0,0 +1,50 @@
<script lang="ts">
import type { Snippet } from 'svelte'
interface Props {
orientation: 'horizontal'
class?: string
children?: Snippet
}
let {
orientation = 'horizontal',
children,
class: clazz,
...rest
}: Props = $props()
</script>
<div
{...rest}
role="group"
class={[
'btn-group',
orientation == 'horizontal' ? 'btn-group-horizontal' : 'btn-group-vertical',
clazz,
]}
>
{@render children?.()}
</div>
<style>
.btn-group {
gap: var(--spacing);
flex-shrink: 0;
}
.btn-group.btn-group-horizontal {
flex-direction: row;
:global(*) {
position: relative;
&:first-child {
border-radius: 24px 8px 8px 24px;
}
&:last-child {
border-radius: 8px 24px 24px 8px;
}
}
}
</style>