wr: 고정 width

This commit is contained in:
2026-04-01 16:26:46 +09:00
parent 3efac843d4
commit f2be91986c
21 changed files with 264 additions and 697 deletions
+4 -2
View File
@@ -138,7 +138,8 @@ export const chRowspanTable = (
<TableCell
key={key}
rowSpan={rowspan}
className="align-middle text-center whitespace-nowrap"
className="align-middle text-center whitespace-normal break-words"
style={{ width: head.widthPercent ? `${head.widthPercent}%` : undefined }}
>
{key === "checkBox" ? (
<Checkbox
@@ -169,8 +170,9 @@ export const chRowspanTable = (
return (
<TableCell
key={key}
className="text-center whitespace-nowrap"
className="text-center whitespace-normal break-words"
onClick={() => handleCellClick(rowIndex, head.id)}
style={{ width: head.widthPercent ? `${head.widthPercent}%` : undefined }}
>
{head.edit === true ? (
[
@@ -190,7 +190,21 @@ export default function RainChkgdTable({
return (
<>
<Table variant="secondary">
<Table variant="secondary" className="table-fixed">
<colgroup>
{headList.headList
.filter((head) => head.visible !== false)
.map((head) => (
<col
key={head.id}
style={{
width: head.widthPercent
? `${head.widthPercent}%`
: undefined,
}}
/>
))}
</colgroup>
<TableHeader className="font-bold">
{headMakeprfmnc(
headList?.headList,
@@ -145,7 +145,21 @@ export default function RswtChkgdTable({
return (
<>
<Table variant="secondary">
<Table variant="secondary" className="table-fixed">
<colgroup>
{headList.headList
.filter((head) => head.visible !== false)
.map((head) => (
<col
key={head.id}
style={{
width: head.widthPercent
? `${head.widthPercent}%`
: undefined,
}}
/>
))}
</colgroup>
<TableHeader className="font-bold">
{headMakeprfmnc(headList?.headList, headList?.upHeadList)}
</TableHeader>