mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
Fix alignment issues arising due to label width setting for input components
This commit is contained in:
parent
c2c0018eb7
commit
20f03d6e11
4 changed files with 67 additions and 6 deletions
|
|
@ -48,8 +48,12 @@ export const listviewConfig = {
|
|||
data: {
|
||||
type: 'code',
|
||||
displayName: 'List data',
|
||||
validation: {
|
||||
schema: { type: 'array', element: { type: 'object' } },
|
||||
schema: {
|
||||
type: 'union',
|
||||
schemas: [
|
||||
{ type: 'array', element: { type: 'object' } },
|
||||
{ type: 'array', element: { type: 'string' } },
|
||||
],
|
||||
defaultValue: "[{text: 'Sample text 1'}]",
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -49,7 +49,13 @@ export const listviewConfig = {
|
|||
type: 'code',
|
||||
displayName: 'List data',
|
||||
validation: {
|
||||
schema: { type: 'array', element: { type: 'object' } },
|
||||
schema: {
|
||||
type: 'union',
|
||||
schemas: [
|
||||
{ type: 'array', element: { type: 'object' } },
|
||||
{ type: 'array', element: { type: 'string' } },
|
||||
],
|
||||
},
|
||||
defaultValue: "[{text: 'Sample text 1'}]",
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1467,5 +1467,56 @@
|
|||
}
|
||||
|
||||
.tj-table-tag-col-readonly {
|
||||
margin-left: -2px !important; //this -ve margin offset for the margin given to each tags in overall column width
|
||||
}
|
||||
margin-left: -2px !important; //this -ve margin offset for the margin given to each tags in overall column width
|
||||
}
|
||||
|
||||
.jet-data-table {
|
||||
.table-bordered {
|
||||
th,
|
||||
td {
|
||||
border-bottom: 1px solid var(--interactive-overlay-border-pressed) !important;
|
||||
border-right: 1px solid var(--interactive-overlay-border-pressed) !important;
|
||||
|
||||
&:first-child {
|
||||
border-left: none !important;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-right: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
thead th {
|
||||
border-top: none !important;
|
||||
|
||||
&:first-child {
|
||||
border-left: none !important;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-right: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.table-striped {
|
||||
tbody {
|
||||
div[data-index]:nth-child(odd) {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
div[data-index]:nth-child(even) {
|
||||
background-color: var(--slate2) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// hide scrollbar on touch devices
|
||||
@media (hover: none) and (pointer: coarse) {
|
||||
.jet-data-table::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export const listviewConfig = {
|
|||
type: 'code',
|
||||
displayName: 'List data',
|
||||
validation: {
|
||||
schema: { type: 'array', element: { type: 'object' } },
|
||||
schema: { type: 'union', schemas: [{ type: 'array', element: { type: 'object' } },{ type: 'array', element: { type: 'string' } }] },
|
||||
defaultValue: "[{text: 'Sample text 1'}]",
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue