Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
3e4c052f
Commit
3e4c052f
authored
Mar 03, 2026
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: unify table style
parent
4321887a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
Table.tsx
web/src/components/MemoContent/Table.tsx
+5
-12
No files found.
web/src/components/MemoContent/Table.tsx
View file @
3e4c052f
...
...
@@ -7,7 +7,7 @@ interface TableProps extends React.HTMLAttributes<HTMLTableElement>, ReactMarkdo
export
const
Table
=
({
children
,
className
,
node
:
_node
,
...
props
}:
TableProps
)
=>
{
return
(
<
div
className=
"
w-full overflow-x-auto rounded-lg border border-border my-2
"
>
<
div
className=
"
my-2 w-full overflow-x-auto rounded-lg border border-border bg-muted/20
"
>
<
table
className=
{
cn
(
"w-full border-collapse text-sm"
,
className
)
}
{
...
props
}
>
{
children
}
</
table
>
...
...
@@ -21,7 +21,7 @@ interface TableHeadProps extends React.HTMLAttributes<HTMLTableSectionElement>,
export
const
TableHead
=
({
children
,
className
,
node
:
_node
,
...
props
}:
TableHeadProps
)
=>
{
return
(
<
thead
className=
{
cn
(
"b
g-accent/5
0"
,
className
)
}
{
...
props
}
>
<
thead
className=
{
cn
(
"b
order-b border-border bg-muted/3
0"
,
className
)
}
{
...
props
}
>
{
children
}
</
thead
>
);
...
...
@@ -45,7 +45,7 @@ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, React
export
const
TableRow
=
({
children
,
className
,
node
:
_node
,
...
props
}:
TableRowProps
)
=>
{
return
(
<
tr
className=
{
cn
(
"transition-colors hover:bg-
muted/3
0"
,
className
)
}
{
...
props
}
>
<
tr
className=
{
cn
(
"transition-colors hover:bg-
accent/2
0"
,
className
)
}
{
...
props
}
>
{
children
}
</
tr
>
);
...
...
@@ -57,14 +57,7 @@ interface TableHeaderCellProps extends React.ThHTMLAttributes<HTMLTableCellEleme
export
const
TableHeaderCell
=
({
children
,
className
,
node
:
_node
,
...
props
}:
TableHeaderCellProps
)
=>
{
return
(
<
th
className=
{
cn
(
"px-3 py-2 text-left text-xs font-semibold uppercase tracking-wider text-muted-foreground"
,
"border-b-2 border-border"
,
className
,
)
}
{
...
props
}
>
<
th
className=
{
cn
(
"px-2 py-1 text-left align-middle text-sm font-medium text-muted-foreground"
,
className
)
}
{
...
props
}
>
{
children
}
</
th
>
);
...
...
@@ -76,7 +69,7 @@ interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement>, R
export
const
TableCell
=
({
children
,
className
,
node
:
_node
,
...
props
}:
TableCellProps
)
=>
{
return
(
<
td
className=
{
cn
(
"px-
3 py-2 text-left
"
,
className
)
}
{
...
props
}
>
<
td
className=
{
cn
(
"px-
2 py-1 text-left align-middle text-sm
"
,
className
)
}
{
...
props
}
>
{
children
}
</
td
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment