Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit f1924bd

Browse files
committed
compact with width
1 parent b38723a commit f1924bd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/components/DefaultCell.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ export default function DefaultCell(cellProperties: CellProps) {
173173
ref={editableMdRef}
174174
/>
175175
) : (
176-
<span ref={containerCellRef} onClick={handleEditableOnclick} />
176+
<span
177+
ref={containerCellRef}
178+
onClick={handleEditableOnclick}
179+
style={{ width: column.getSize() }}
180+
/>
177181
);
178182

179183
/** Number option */
@@ -187,7 +191,11 @@ export default function DefaultCell(cellProperties: CellProps) {
187191
className="text-align-right"
188192
/>
189193
) : (
190-
<span className="text-align-right" onClick={handleEditableOnclick}>
194+
<span
195+
className="text-align-right"
196+
onClick={handleEditableOnclick}
197+
style={{ width: column.getSize() }}
198+
>
191199
{(contextValue.value && contextValue.value.toString()) || ""}
192200
</span>
193201
);

0 commit comments

Comments
 (0)