@nil-/doc 0.2.42 → 0.2.43
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @nil-/doc
|
|
2
2
|
|
|
3
|
+
## 0.2.43
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [doc][fix] disable Range.svelte tooltip when disabled ([#70](https://github.com/njaldea/mono/pull/70))
|
|
8
|
+
|
|
9
|
+
- [doc][new] added auto scroll when content of layout is only one component ([#70](https://github.com/njaldea/mono/pull/70))
|
|
10
|
+
|
|
3
11
|
## 0.2.42
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/components/Layout.svelte
CHANGED
|
@@ -47,13 +47,15 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/* scrollable */
|
|
50
|
-
.scrollable
|
|
50
|
+
.scrollable,
|
|
51
|
+
.page > :global(*:only-child) {
|
|
51
52
|
overflow: scroll;
|
|
52
53
|
scrollbar-width: none; /* Firefox */
|
|
53
54
|
-ms-overflow-style: none; /* IE and Edge */
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
.scrollable::-webkit-scrollbar
|
|
57
|
+
.scrollable::-webkit-scrollbar,
|
|
58
|
+
.page > :global(*:only-child::-webkit-scrollbar) {
|
|
57
59
|
display: none;
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -137,7 +139,7 @@ const toggle = () => {
|
|
|
137
139
|
</div>
|
|
138
140
|
</svelte:fragment>
|
|
139
141
|
<svelte:fragment slot="B">
|
|
140
|
-
<div class="content
|
|
142
|
+
<div class="content page">
|
|
141
143
|
{#key current}
|
|
142
144
|
<slot />
|
|
143
145
|
{/key}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
visibility: hidden;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.input:hover > .tooltip {
|
|
30
|
+
.input:hover > .tooltip:not(.disabled) {
|
|
31
31
|
visibility: visible;
|
|
32
32
|
}
|
|
33
33
|
</style>
|
|
@@ -41,11 +41,13 @@ let ivalue = value ?? getDefault(info);
|
|
|
41
41
|
let enabled = value !== void 0;
|
|
42
42
|
$:
|
|
43
43
|
value = enabled && !disabled ? ivalue : void 0;
|
|
44
|
+
$:
|
|
45
|
+
flag = !enabled || disabled;
|
|
44
46
|
</script>
|
|
45
47
|
<div>
|
|
46
48
|
<div style:padding-left={`${depth}px`} title={info.name}>- {info.name}</div>
|
|
47
49
|
<div class="input">
|
|
48
|
-
<div class="tooltip">
|
|
50
|
+
<div class="tooltip" class:disabled={flag}>
|
|
49
51
|
Current Value: {ivalue}
|
|
50
52
|
</div>
|
|
51
53
|
<div>{ivalue.toFixed(2)}</div>
|
|
@@ -55,7 +57,7 @@ $:
|
|
|
55
57
|
min={info.min}
|
|
56
58
|
max={info.max}
|
|
57
59
|
step={info.step}
|
|
58
|
-
disabled={
|
|
60
|
+
disabled={flag}
|
|
59
61
|
/>
|
|
60
62
|
</div>
|
|
61
63
|
<div><input type="checkbox" bind:checked={enabled} {disabled} /></div>
|