mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Fix listview default isze
This commit is contained in:
parent
fe8792f2ef
commit
161b1440d2
5 changed files with 17 additions and 18 deletions
|
|
@ -13,7 +13,7 @@ export const listviewConfig = {
|
|||
top: 15,
|
||||
left: 3,
|
||||
height: 100,
|
||||
width: 7,
|
||||
width: 4,
|
||||
},
|
||||
properties: ['source'],
|
||||
accessorKey: 'imageURL',
|
||||
|
|
@ -24,6 +24,7 @@ export const listviewConfig = {
|
|||
top: 50,
|
||||
left: 11,
|
||||
height: 30,
|
||||
width: 4,
|
||||
},
|
||||
properties: ['text'],
|
||||
accessorKey: 'text',
|
||||
|
|
@ -49,12 +50,14 @@ export const listviewConfig = {
|
|||
data: {
|
||||
type: 'code',
|
||||
displayName: 'List data',
|
||||
schema: {
|
||||
type: 'union',
|
||||
schemas: [
|
||||
{ type: 'array', element: { type: 'object' } },
|
||||
{ type: 'array', element: { type: 'string' } },
|
||||
],
|
||||
validation: {
|
||||
schema: {
|
||||
type: 'union',
|
||||
schemas: [
|
||||
{ type: 'array', element: { type: 'object' } },
|
||||
{ type: 'array', element: { type: 'string' } },
|
||||
],
|
||||
},
|
||||
defaultValue: "[{text: 'Sample text 1'}]",
|
||||
},
|
||||
},
|
||||
|
|
@ -125,7 +128,7 @@ export const listviewConfig = {
|
|||
},
|
||||
styles: {
|
||||
backgroundColor: {
|
||||
type: 'colorSwatches',
|
||||
type: 'color',
|
||||
displayName: 'Background color',
|
||||
validation: {
|
||||
schema: { type: 'string' },
|
||||
|
|
@ -133,7 +136,7 @@ export const listviewConfig = {
|
|||
},
|
||||
},
|
||||
borderColor: {
|
||||
type: 'colorSwatches',
|
||||
type: 'color',
|
||||
displayName: 'Border color',
|
||||
validation: {
|
||||
schema: { type: 'string' },
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ export const tableConfig = {
|
|||
showOnMobile: { type: 'toggle', displayName: 'Show on mobile' },
|
||||
},
|
||||
defaultSize: {
|
||||
width: 35,
|
||||
width: 25,
|
||||
height: 456,
|
||||
},
|
||||
events: {
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ export const Item = React.memo(
|
|||
>
|
||||
<div className="subcontainer-container" onMouseDown={(e) => e.stopPropagation()}>
|
||||
<SubContainer
|
||||
parentComponent={component}
|
||||
canvasWidth={Number(cardWidth) || 300}
|
||||
canvasHeight={Number(cardHeight) || 100}
|
||||
id={id}
|
||||
|
|
@ -90,11 +89,7 @@ export const Item = React.memo(
|
|||
backgroundColor: 'var(--base)',
|
||||
}}
|
||||
darkMode={darkMode}
|
||||
// parentName={component.name}
|
||||
// customResolvables={{ cardData: cardDataAsObj[value] }}
|
||||
// {...containerProps}
|
||||
// readOnly={isDragActive || !isFirstItem}
|
||||
// parentRef={parentRef}
|
||||
componentType="Kanban"
|
||||
/>
|
||||
</div>
|
||||
<span className="handle-container">
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export const listviewConfig = {
|
|||
top: 15,
|
||||
left: 3,
|
||||
height: 100,
|
||||
width: 7,
|
||||
width: 4,
|
||||
},
|
||||
properties: ['source'],
|
||||
accessorKey: 'imageURL',
|
||||
|
|
@ -24,6 +24,7 @@ export const listviewConfig = {
|
|||
top: 50,
|
||||
left: 11,
|
||||
height: 30,
|
||||
width: 3,
|
||||
},
|
||||
properties: ['text'],
|
||||
accessorKey: 'text',
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ export const tableConfig = {
|
|||
showOnMobile: { type: 'toggle', displayName: 'Show on mobile' },
|
||||
},
|
||||
defaultSize: {
|
||||
width: 35,
|
||||
width: 25,
|
||||
height: 456,
|
||||
},
|
||||
events: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue