mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
feat(fields): stop click propagation on fields and reduce middle column width
This commit is contained in:
@@ -377,7 +377,7 @@ export function FileCard({
|
||||
<label className="text-xs text-muted-foreground tracking-wide">
|
||||
{field.config?.name}
|
||||
</label>
|
||||
<div className="min-h-[28px]">
|
||||
<div className="min-h-[28px]" onClick={(e) => e.stopPropagation()}>
|
||||
<FieldRenderer
|
||||
config={field.config}
|
||||
value={itemFieldValueMap[field.id!]?.value}
|
||||
|
||||
@@ -280,6 +280,7 @@ export function FileListItem({
|
||||
width: columnSizing?.[field.id!] || 150,
|
||||
minWidth: columnSizing?.[field.id!] || 150,
|
||||
}}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<FieldRenderer
|
||||
config={field.config}
|
||||
|
||||
Reference in New Issue
Block a user