@lavalogic/scoria 0.31.1 → 0.31.2

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.
@@ -114,6 +114,7 @@ div.content {
114
114
  flex-flow: column nowrap;
115
115
  transition: max-height ease-out 0.15s 0s, opacity ease-out 0.15s 0.1s;
116
116
  max-height: var(--card-max-height, 100%);
117
+ overflow: auto;
117
118
  height: var(--card-max-height);
118
119
  opacity: 1;
119
120
  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 class="wrapper noscroll">
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 class="content noscroll">
94
+ <div
95
+ class:noscroll
96
+ class="content"
97
+ >
92
98
  {#if currentStep}
93
99
  {@render currentStep.content(currentStep.args)}
94
100
  {:else}
@@ -123,6 +129,7 @@
123
129
  flex-flow: column nowrap;
124
130
  flex: 1;
125
131
  overflow: auto;
132
+ flex-shrink: 1;
126
133
  }
127
134
  .wrapper.noscroll {
128
135
  overflow: visible;
@@ -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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lavalogic/scoria",
3
3
  "description": "Svelte components used for the FloWMS Web Frontend",
4
- "version": "0.31.1",
4
+ "version": "0.31.2",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },