diff --git a/frontend/src/lib/components/apps/components/helpers/RunnableComponent.svelte b/frontend/src/lib/components/apps/components/helpers/RunnableComponent.svelte index 005abc8140..92f287eeb2 100644 --- a/frontend/src/lib/components/apps/components/helpers/RunnableComponent.svelte +++ b/frontend/src/lib/components/apps/components/helpers/RunnableComponent.svelte @@ -299,7 +299,7 @@ -
+
{:else} diff --git a/frontend/src/lib/components/apps/editor/component/Component.svelte b/frontend/src/lib/components/apps/editor/component/Component.svelte index 5cb6b1d253..1576990f99 100644 --- a/frontend/src/lib/components/apps/editor/component/Component.svelte +++ b/frontend/src/lib/components/apps/editor/component/Component.svelte @@ -81,7 +81,6 @@ selected && $mode !== 'preview' ? 'border border-blue-500' : '', !selected && $mode !== 'preview' && !component.card ? 'border-gray-100' : '', $mode !== 'preview' && !$connectingInput.opened ? 'hover:border-blue-500' : '', - component.softWrap ? '' : 'overflow-auto', $mode != 'preview' ? 'cursor-pointer' : '', 'relative z-auto', $app.css?.['app']?.['component']?.class diff --git a/frontend/src/lib/components/apps/editor/component/components.ts b/frontend/src/lib/components/apps/editor/component/components.ts index c612b37835..ef1d82997e 100644 --- a/frontend/src/lib/components/apps/editor/component/components.ts +++ b/frontend/src/lib/components/apps/editor/component/components.ts @@ -181,7 +181,6 @@ export const components: Record = { icon: BoxSelect, dims: '2:8-6:8', data: { - softWrap: true, id: '', type: 'containercomponent', configuration: { @@ -205,7 +204,6 @@ export const components: Record = { icon: Type, dims: '1:1-3:1', data: { - softWrap: false, horizontalAlignment: 'left', verticalAlignment: 'top', id: '', @@ -248,7 +246,7 @@ export const components: Record = { dims: '1:1-2:1', data: { ...defaultAlignement, - softWrap: true, + id: '', type: 'buttoncomponent', componentInput: { @@ -490,7 +488,6 @@ export const components: Record = { icon: Code2, dims: '1:2-1:2', data: { - softWrap: false, id: '', type: 'htmlcomponent', componentInput: { @@ -515,7 +512,6 @@ Hello \${ctx.username} icon: PieChart, dims: '2:8-6:8', data: { - softWrap: false, id: '', type: 'vegalitecomponent', componentInput: { @@ -555,7 +551,6 @@ Hello \${ctx.username} icon: PieChart, dims: '2:8-6:8', data: { - softWrap: false, id: '', type: 'plotlycomponent', componentInput: { @@ -809,7 +804,7 @@ Hello \${ctx.username} dims: '1:1-2:1', data: { ...defaultAlignement, - softWrap: true, + id: '', type: 'checkboxcomponent', componentInput: undefined, @@ -836,7 +831,6 @@ Hello \${ctx.username} icon: TextCursorInput, dims: '2:1-2:1', data: { - softWrap: true, verticalAlignment: 'center', id: '', type: 'textinputcomponent', @@ -900,8 +894,7 @@ Hello \${ctx.username} customCss: { input: { style: '' } } as const, - card: false, - softWrap: true + card: false } }, multiselectcomponent: { @@ -930,8 +923,7 @@ Hello \${ctx.username} customCss: { input: { style: '' } } as const, - card: false, - softWrap: true + card: false } }, numberinputcomponent: { @@ -939,7 +931,6 @@ Hello \${ctx.username} icon: Binary, dims: '2:1-3:1', data: { - softWrap: true, verticalAlignment: 'center', id: '', type: 'numberinputcomponent', @@ -983,7 +974,6 @@ Hello \${ctx.username} icon: DollarSign, dims: '2:1-3:1', data: { - softWrap: true, verticalAlignment: 'center', id: '', type: 'currencycomponent', @@ -1026,7 +1016,6 @@ Hello \${ctx.username} icon: SlidersHorizontal, dims: '3:1-4:1', data: { - softWrap: true, verticalAlignment: 'center', id: '', type: 'slidercomponent', @@ -1067,7 +1056,6 @@ Hello \${ctx.username} icon: SlidersHorizontal, dims: '3:2-4:2', data: { - softWrap: true, verticalAlignment: 'center', id: '', type: 'rangecomponent', @@ -1112,7 +1100,6 @@ Hello \${ctx.username} icon: Lock, dims: '2:1-3:1', data: { - softWrap: true, verticalAlignment: 'center', id: '', type: 'passwordinputcomponent', @@ -1136,7 +1123,6 @@ Hello \${ctx.username} icon: Calendar, dims: '2:1-3:1', data: { - softWrap: true, verticalAlignment: 'center', id: '', type: 'dateinputcomponent', @@ -1169,7 +1155,6 @@ Hello \${ctx.username} icon: ListOrdered, dims: '2:8-6:8', data: { - softWrap: true, id: '', type: 'tabscomponent', configuration: { @@ -1197,7 +1182,6 @@ Hello \${ctx.username} icon: Smile, dims: '1:3-1:2', data: { - softWrap: false, horizontalAlignment: 'center', verticalAlignment: 'center', id: '', @@ -1373,7 +1357,6 @@ Hello \${ctx.username} icon: SidebarClose, dims: '1:1-2:1', data: { - softWrap: true, id: '', type: 'drawercomponent', horizontalAlignment: 'center', @@ -1488,7 +1471,6 @@ Hello \${ctx.username} icon: FlipHorizontal, dims: '2:8-6:8', data: { - softWrap: true, id: '', type: 'verticalsplitpanescomponent', configuration: { @@ -1513,7 +1495,6 @@ Hello \${ctx.username} icon: FlipVertical, dims: '2:8-6:8', data: { - softWrap: true, id: '', type: 'horizontalsplitpanescomponent', configuration: { diff --git a/frontend/src/lib/components/apps/types.ts b/frontend/src/lib/components/apps/types.ts index 0928f99660..55e569ea5a 100644 --- a/frontend/src/lib/components/apps/types.ts +++ b/frontend/src/lib/components/apps/types.ts @@ -42,23 +42,18 @@ export interface BaseAppComponent extends Partial { configuration: Record< string, GeneralAppInput & - ( - | StaticAppInput - | ConnectedAppInput - | UserAppInput - | RowAppInput - | EvalAppInput - | UploadAppInput - ) + ( + | StaticAppInput + | ConnectedAppInput + | UserAppInput + | RowAppInput + | EvalAppInput + | UploadAppInput + ) > card: boolean | undefined customCss?: ComponentCustomCSS - /** - * If `true` then the wrapper will allow items to flow outside of it's borders. - * - * *For example when the component has a popup like `Select`* - */ - softWrap?: boolean + // Number of subgrids numberOfSubgrids?: number }