mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
style: to keep table header within sight when browsing many records, make it sticky
Being frankly, I'm quite a stranger to zenui, please forgive me that I write an inline style and it will be helpful to instruct me on if there is a possibly formal way to do it.
This commit is contained in:
parent
a19b92a5cb
commit
7598092193
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export function MetricsExpandedTable({
|
||||||
<Column overflow="auto" minHeight="0" height="100%" paddingRight="3">
|
<Column overflow="auto" minHeight="0" height="100%" paddingRight="3">
|
||||||
{items && (
|
{items && (
|
||||||
<DataTable data={items}>
|
<DataTable data={items}>
|
||||||
<DataColumn id="label" label={title} width="minmax(200px, 2fr)" align="start">
|
<DataColumn id="label" label={title} width="minmax(200px, 2fr)" align="start" style="position:sticky;top:0;background-color:#0f0f0f">
|
||||||
{row => (
|
{row => (
|
||||||
<Row overflow="hidden">
|
<Row overflow="hidden">
|
||||||
<MetricLabel type={type} data={row} />
|
<MetricLabel type={type} data={row} />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue