mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix: corrected tab component layout
This commit is contained in:
parent
430e145946
commit
0f16f1b109
4 changed files with 10 additions and 6 deletions
|
|
@ -97,7 +97,7 @@ export const CustomDragLayer = ({ canvasWidth, onDragging }) => {
|
|||
}
|
||||
|
||||
return (
|
||||
<div style={layerStyles}>
|
||||
<div style={{ ...layerStyles, ...(isDragging ? { zIndex: 1061 } : {}) }}>
|
||||
<div
|
||||
style={getItemStyles(
|
||||
delta,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
/* top: 150px;
|
||||
left: 100px; */
|
||||
/* line-height: 100px; */
|
||||
text-align: center;
|
||||
/* text-align: center; */
|
||||
/* background: #ee8; */
|
||||
/* color: #333; */
|
||||
/* font-weight: bold; */
|
||||
|
|
|
|||
|
|
@ -206,7 +206,11 @@ export default function DragContainer({
|
|||
}}
|
||||
flushSync={flushSync}
|
||||
target={
|
||||
draggedSubContainer ? '.asdadadasdadad' : groupedTargets.length > 1 ? [...groupedTargets] : '.widget-target'
|
||||
draggedSubContainer || (groupedTargets.length < 2 && selectedComponents.length > 1)
|
||||
? '.asdadadasdadad'
|
||||
: groupedTargets.length > 1
|
||||
? [...groupedTargets]
|
||||
: '.widget-target'
|
||||
}
|
||||
origin={false}
|
||||
individualGroupable={selectedComponents.length <= 1}
|
||||
|
|
|
|||
|
|
@ -3542,7 +3542,7 @@ export const widgets = [
|
|||
componentName: 'Image',
|
||||
layout: {
|
||||
top: 60,
|
||||
left: 37,
|
||||
left: 17,
|
||||
height: 100,
|
||||
},
|
||||
tab: 0,
|
||||
|
|
@ -3555,7 +3555,7 @@ export const widgets = [
|
|||
componentName: 'Text',
|
||||
layout: {
|
||||
top: 100,
|
||||
left: 17,
|
||||
left: 5,
|
||||
height: 50,
|
||||
width: 34,
|
||||
},
|
||||
|
|
@ -3570,7 +3570,7 @@ export const widgets = [
|
|||
layout: {
|
||||
top: 0,
|
||||
left: 1,
|
||||
width: 42,
|
||||
width: 41,
|
||||
height: 250,
|
||||
},
|
||||
tab: 2,
|
||||
|
|
|
|||
Loading…
Reference in a new issue