Fix listview default isze

This commit is contained in:
Nakul Nagargade 2025-05-22 18:48:26 +05:30
parent fe8792f2ef
commit 161b1440d2
5 changed files with 17 additions and 18 deletions

View file

@ -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' },

View file

@ -275,7 +275,7 @@ export const tableConfig = {
showOnMobile: { type: 'toggle', displayName: 'Show on mobile' },
},
defaultSize: {
width: 35,
width: 25,
height: 456,
},
events: {

View file

@ -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">

View file

@ -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',

View file

@ -275,7 +275,7 @@ export const tableConfig = {
showOnMobile: { type: 'toggle', displayName: 'Show on mobile' },
},
defaultSize: {
width: 35,
width: 25,
height: 456,
},
events: {