mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
fix(frontend): Fix the table selection + improve the ComponentInputTypeEditor (#3585)
This commit is contained in:
@@ -445,7 +445,7 @@
|
||||
{@const isLastRow = index === filteredResult.length - 1}
|
||||
{@const rowIndex = row.original['__index']}
|
||||
<tr
|
||||
class={classNames(
|
||||
class={twMerge(
|
||||
isLastRow ? '!border-b-0' : '',
|
||||
'divide-x w-full',
|
||||
index % 2 === 0 ? 'bg-gray-50/50' : '',
|
||||
|
||||
+8
-5
@@ -29,13 +29,16 @@
|
||||
...componentInput,
|
||||
type: 'evalv2',
|
||||
expr: expr,
|
||||
connections: [{ componentId: connection.componentId, id: connection.path.split('.')[0].split('[')[0] }]
|
||||
connections: [
|
||||
{ componentId: connection.componentId, id: connection.path.split('.')[0].split('[')[0] }
|
||||
]
|
||||
}
|
||||
evalV2editor?.setCode(expr)
|
||||
$app = $app
|
||||
}
|
||||
|
||||
let clientWidth: number
|
||||
const iconOnlyThreshold = 300
|
||||
</script>
|
||||
|
||||
{#if componentInput.fieldType !== 'any'}
|
||||
@@ -71,7 +74,7 @@
|
||||
label="Static"
|
||||
value="static"
|
||||
disabled={disableStatic}
|
||||
iconOnly={clientWidth < 250}
|
||||
iconOnly={clientWidth < iconOnlyThreshold}
|
||||
icon={Pen}
|
||||
/>
|
||||
{/if}
|
||||
@@ -79,21 +82,21 @@
|
||||
<ToggleButton
|
||||
value="connected"
|
||||
icon={Plug2}
|
||||
iconOnly={clientWidth < 250}
|
||||
iconOnly={clientWidth < iconOnlyThreshold}
|
||||
label="Connect"
|
||||
/>
|
||||
{/if}
|
||||
<ToggleButton
|
||||
value="evalv2"
|
||||
icon={FunctionSquare}
|
||||
iconOnly={clientWidth < 250}
|
||||
iconOnly={clientWidth < iconOnlyThreshold}
|
||||
label="Eval"
|
||||
/>
|
||||
|
||||
<ToggleButton
|
||||
value="runnable"
|
||||
icon={Code}
|
||||
iconOnly={clientWidth < 250}
|
||||
iconOnly={clientWidth < iconOnlyThreshold}
|
||||
label="Compute"
|
||||
id="data-source-compute"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user