mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Responsive tables.
This commit is contained in:
parent
cb9dcc7300
commit
9f6e17b986
14 changed files with 26 additions and 31 deletions
|
|
@ -9,7 +9,7 @@ export default function Table({ columns, rows, empty }) {
|
|||
|
||||
return (
|
||||
<div className={styles.table}>
|
||||
<div className={styles.header}>
|
||||
<div className={classNames(styles.header, 'row')}>
|
||||
{columns.map(({ key, label, className, style, header }) => (
|
||||
<div
|
||||
key={key}
|
||||
|
|
@ -22,7 +22,7 @@ export default function Table({ columns, rows, empty }) {
|
|||
</div>
|
||||
<div className={styles.body}>
|
||||
{rows.map((row, rowIndex) => (
|
||||
<div className={styles.row} key={rowIndex}>
|
||||
<div className={classNames(styles.row, 'row')} key={rowIndex}>
|
||||
{columns.map(({ key, render, className, style, cell }) => (
|
||||
<div
|
||||
key={`${rowIndex}${key}`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue