@streamscloud/kit 0.10.7-1781470550424 → 0.10.7-1781473046108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,7 +30,7 @@ const navigateToUser = (event, by) => {
|
|
|
30
30
|
{#if dateTime}
|
|
31
31
|
{#if by}
|
|
32
32
|
<span class="table-by-cell__by">
|
|
33
|
-
<Tooltip text={by.name} placement="bottom">
|
|
33
|
+
<Tooltip text={by.name} placement="bottom" fillHeight>
|
|
34
34
|
{@const href = getHref(by)}
|
|
35
35
|
{#if href}
|
|
36
36
|
<a href={href} onclick={(e) => navigateToUser(e, by)} class="table-by-cell__by-image">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">import { arrow as arrowMiddleware, autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';
|
|
2
2
|
import { tick } from 'svelte';
|
|
3
|
-
const { text, placement = 'top', delay = 250, children } = $props();
|
|
3
|
+
const { text, placement = 'top', delay = 250, fillHeight = false, children } = $props();
|
|
4
4
|
let triggerEl = $state.raw(undefined);
|
|
5
5
|
let bubbleEl = $state.raw(undefined);
|
|
6
6
|
let arrowEl = $state.raw(undefined);
|
|
@@ -65,6 +65,7 @@ $effect(() => () => {
|
|
|
65
65
|
<span
|
|
66
66
|
bind:this={triggerEl}
|
|
67
67
|
class="tooltip"
|
|
68
|
+
class:tooltip--fill-height={fillHeight}
|
|
68
69
|
aria-describedby={visible ? id : undefined}
|
|
69
70
|
onmouseenter={show}
|
|
70
71
|
onmouseleave={hide}
|
|
@@ -105,6 +106,10 @@ or plain text. Bubble flips and shifts on viewport collision; an arrow points to
|
|
|
105
106
|
|
|
106
107
|
<style>.tooltip {
|
|
107
108
|
display: inline-flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
.tooltip--fill-height {
|
|
112
|
+
block-size: 100%;
|
|
108
113
|
}
|
|
109
114
|
.tooltip__bubble {
|
|
110
115
|
--_tt--background: var(--sc-kit--tooltip--background, var(--sc-kit--color--bg--tooltip));
|
|
@@ -7,6 +7,8 @@ type Props = {
|
|
|
7
7
|
placement?: Placement;
|
|
8
8
|
/** Delay before show in ms. @default 250 */
|
|
9
9
|
delay?: number;
|
|
10
|
+
/** Stretch the trigger to the parent's full height (content stays vertically centered). @default false */
|
|
11
|
+
fillHeight?: boolean;
|
|
10
12
|
/** Wrapped element — anything passed becomes the tooltip trigger (icon, button, link, plain text). */
|
|
11
13
|
children: Snippet;
|
|
12
14
|
};
|