1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 11:21:29 +00:00

change checkbox default style (#7298)

* change checkbox style

* change checkbox color to blue

* use default checkbox
This commit is contained in:
Michael An
2025-01-06 14:18:09 +08:00
committed by GitHub
parent 89924320cb
commit 4b4bfb83da
3 changed files with 62 additions and 33 deletions

View File

@@ -26,9 +26,19 @@ const FixedWidthTable = ({ className, headers, theadOptions = {}, children }) =>
<thead { ...theadOptions }>
<tr>
{headers.map((header, index) => {
const { width, isFixed, children: thChildren, className } = header;
const validWidth = isFixed ? width : (containerWidth - fixedWidth) * width;
return (<th key={index} style={{ width: validWidth }} className={className}>{thChildren}</th>);
const { width, isFixed, className, onClick = () => {}, title = '', ariaLabel = '' } = header;
return (
<th
key={index}
style={{ width: isFixed ? width : (containerWidth - fixedWidth) * width }}
className={className}
onClick={onClick}
title={title}
aria-label={ariaLabel}
>
{header.children}
</th>
);
})}
</tr>
</thead>