hamzus-ui 0.0.116 → 0.0.118

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -288,7 +288,7 @@
288
288
  user-select: none;
289
289
  pointer-events: none;
290
290
  opacity: 0;
291
- z-index: 2;
291
+ z-index: 100;
292
292
  }
293
293
 
294
294
  .content.exit {
@@ -460,7 +460,7 @@
460
460
  user-select: none;
461
461
  pointer-events: none;
462
462
  opacity: 0;
463
- z-index: 20;
463
+ z-index: 100;
464
464
  }
465
465
 
466
466
  .content.exit {
@@ -1,26 +1,31 @@
1
1
  <script>
2
- import TinyScrollArea from "../TinyScrollArea/TinyScrollArea.svelte";
3
- import { activeTrigger } from ".";
2
+ import TinyScrollArea from '../TinyScrollArea/TinyScrollArea.svelte';
3
+ import { activeTrigger } from '.';
4
+ import { onMount } from 'svelte';
4
5
 
5
6
  let left = 0;
6
7
  let width = 0;
7
8
 
8
9
  $: if ($activeTrigger) {
9
-
10
10
  // return
11
11
  left = $activeTrigger.offsetLeft;
12
12
  width = $activeTrigger.offsetWidth;
13
13
  }
14
+ onMount(() => {
15
+ if ($activeTrigger !== null) {
16
+ left = $activeTrigger.offsetLeft;
17
+ width = $activeTrigger.offsetWidth;
18
+ }
19
+ });
14
20
  </script>
15
21
 
16
22
  <TinyScrollArea style="display: flex;" proximity={0}>
17
23
  <div class="tabs" style="--left:{left}px;--width:{width}px;">
18
- <slot />
24
+ <slot />
19
25
  <span class="active-line"></span>
20
26
  </div>
21
27
  </TinyScrollArea>
22
28
 
23
-
24
29
  <style>
25
30
  .tabs {
26
31
  min-width: 100%;
@@ -45,4 +50,4 @@
45
50
  transition-duration: 0.2s;
46
51
  transition-timing-function: cubic-bezier(0.17, 0.84, 0.44, 1);
47
52
  }
48
- </style>
53
+ </style>