Update SKELETON_HEIGHT in ObjectTable component for improved layout consistency. Adjust Skeleton.Input height for better visual alignment in the dashboard table.
This commit is contained in:
parent
deec609d54
commit
5c436e6afa
@ -50,7 +50,7 @@ const logger = loglevel.getLogger('DasboardTable')
|
||||
logger.setLevel(config.logLevel)
|
||||
|
||||
const SCROLL_THRESHOLD = 50
|
||||
const SKELETON_HEIGHT = 49
|
||||
const SKELETON_HEIGHT = 49.5
|
||||
|
||||
const RowForm = ({ record, isEditing, onRegister, children }) => {
|
||||
const [form] = Form.useForm()
|
||||
@ -966,7 +966,11 @@ const ObjectTable = forwardRef(
|
||||
render: (text, record) => {
|
||||
if (record?.isSkeleton) {
|
||||
return (
|
||||
<Skeleton.Input active size='small' style={{ width: '100%' }} />
|
||||
<Skeleton.Input
|
||||
active
|
||||
size='small'
|
||||
style={{ width: '100%', height: 24.5 }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user