💄 (tableAutoCellRender): add truncate class to div for text overflow handling
💄 (classes.css): change .ag-cell alignment to align-content center for better layout
This commit is contained in:
parent
686a07faaa
commit
86eea0a844
2 changed files with 3 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ export default function TableAutoCellRender({
|
|||
variant="outline"
|
||||
size="sq"
|
||||
className={cn(
|
||||
"min-w-min bg-success-background text-success-foreground hover:bg-success-background"
|
||||
"min-w-min bg-success-background text-success-foreground hover:bg-success-background",
|
||||
)}
|
||||
>
|
||||
{value}
|
||||
|
|
@ -51,7 +51,7 @@ export default function TableAutoCellRender({
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="group flex h-full w-full items-center align-middle">
|
||||
<div className="group flex h-full w-full items-center truncate align-middle">
|
||||
{getCellType()}
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -102,8 +102,7 @@ select:-webkit-autofill:focus {
|
|||
}
|
||||
|
||||
.ag-row .ag-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-content: center !important;
|
||||
}
|
||||
.ag-cell {
|
||||
line-height: 1.25rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue