@lavalogic/scoria 0.31.1 → 0.31.3
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.
|
@@ -69,12 +69,17 @@
|
|
|
69
69
|
|
|
70
70
|
<style>.collapsible-card {
|
|
71
71
|
background-color: white;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-flow: column nowrap;
|
|
74
|
+
flex-shrink: 1;
|
|
72
75
|
border-radius: 4px;
|
|
73
76
|
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1333333333);
|
|
74
77
|
padding: 1.5rem;
|
|
78
|
+
max-height: 100%;
|
|
79
|
+
overflow: hidden;
|
|
75
80
|
}
|
|
76
81
|
.collapsible-card.grow {
|
|
77
|
-
flex
|
|
82
|
+
flex: 1;
|
|
78
83
|
}
|
|
79
84
|
.collapsible-card .heading {
|
|
80
85
|
display: flex;
|
|
@@ -114,6 +119,7 @@ div.content {
|
|
|
114
119
|
flex-flow: column nowrap;
|
|
115
120
|
transition: max-height ease-out 0.15s 0s, opacity ease-out 0.15s 0.1s;
|
|
116
121
|
max-height: var(--card-max-height, 100%);
|
|
122
|
+
overflow: auto;
|
|
117
123
|
height: var(--card-max-height);
|
|
118
124
|
opacity: 1;
|
|
119
125
|
width: 100%;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import StepButton from './StepButton.svelte';
|
|
12
12
|
import type { StepFormProps } from './StepFormProps.js';
|
|
13
13
|
|
|
14
|
-
let { name, steps, currentStep }: StepFormProps<CommonDenominator> = $props();
|
|
14
|
+
let { name, steps, currentStep, noscroll = false }: StepFormProps<CommonDenominator> = $props();
|
|
15
15
|
|
|
16
16
|
onMount(() => {
|
|
17
17
|
if (name) {
|
|
@@ -55,7 +55,10 @@
|
|
|
55
55
|
});
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
|
-
<div
|
|
58
|
+
<div
|
|
59
|
+
class:noscroll
|
|
60
|
+
class="wrapper"
|
|
61
|
+
>
|
|
59
62
|
<div class="tabs">
|
|
60
63
|
{#each steps as option, index (index)}
|
|
61
64
|
<StepButton
|
|
@@ -88,7 +91,10 @@
|
|
|
88
91
|
</div>
|
|
89
92
|
</div>
|
|
90
93
|
|
|
91
|
-
<div
|
|
94
|
+
<div
|
|
95
|
+
class:noscroll
|
|
96
|
+
class="content"
|
|
97
|
+
>
|
|
92
98
|
{#if currentStep}
|
|
93
99
|
{@render currentStep.content(currentStep.args)}
|
|
94
100
|
{:else}
|
|
@@ -123,9 +129,10 @@
|
|
|
123
129
|
flex-flow: column nowrap;
|
|
124
130
|
flex: 1;
|
|
125
131
|
overflow: auto;
|
|
132
|
+
max-height: 100%;
|
|
126
133
|
}
|
|
127
134
|
.wrapper.noscroll {
|
|
128
|
-
overflow:
|
|
135
|
+
overflow: hidden;
|
|
129
136
|
}
|
|
130
137
|
.wrapper .tabs {
|
|
131
138
|
border-radius: 0 4px 0 0;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TabOption } from '../Types/Internal/TabOption.js';
|
|
2
2
|
export interface StepFormProps<CommonDenominator> {
|
|
3
|
-
name?: string;
|
|
4
3
|
steps: Array<TabOption<CommonDenominator>>;
|
|
5
4
|
currentStep: TabOption<CommonDenominator> | undefined;
|
|
5
|
+
name?: string;
|
|
6
|
+
noscroll?: boolean;
|
|
6
7
|
}
|