Skip to content

Commit eed62cf

Browse files
authored
Merge pull request #207 from duyet/chore/new-features
chore(component): update table
2 parents e37f4d9 + 52cf504 commit eed62cf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/data-table/cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ export const formatCell = <TData extends RowData, TValue>(
8686
)
8787

8888
default:
89-
return value
89+
return <span className='text-nowrap'>{value as string}</span>
9090
}
9191
}

components/data-table/cells/code-toggle-format.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface CodeToggleFormatProps {
1010
value: any
1111
}
1212

13-
const CODE_TRUNCATE_LENGTH = 50
13+
const CODE_TRUNCATE_LENGTH = 75
1414

1515
export function CodeToggleFormat({ row, value }: CodeToggleFormatProps) {
1616
if (value.length < CODE_TRUNCATE_LENGTH) {
@@ -27,7 +27,7 @@ export function CodeToggleFormat({ row, value }: CodeToggleFormatProps) {
2727
<AccordionItem value="code" className="border-0">
2828
<AccordionTrigger className="py-0 hover:no-underline">
2929
<code className="truncate break-words font-normal">
30-
{value.substring(0, 50)}...
30+
{value.substring(0, CODE_TRUNCATE_LENGTH)}...
3131
</code>
3232
</AccordionTrigger>
3333
<AccordionContent>

components/tremor/area.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function AreaChart({
9898
<div className="flex flex-row gap-2">
9999
<div className="flex flex-row items-center bg-slate-50 p-3 align-middle">
100100
<DonutChart
101-
className="size-28"
101+
className="h-28 w-28"
102102
data={data}
103103
category="value"
104104
index="name"

0 commit comments

Comments
 (0)