mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
This commit is contained in:
parent
15700a6394
commit
e52a6b405b
4 changed files with 24 additions and 8 deletions
|
|
@ -38,8 +38,9 @@ export function TopNav() {
|
||||||
paddingRight="5"
|
paddingRight="5"
|
||||||
width="100%"
|
width="100%"
|
||||||
zIndex={100}
|
zIndex={100}
|
||||||
|
backgroundColor="surface-raised"
|
||||||
>
|
>
|
||||||
<Row alignItems="center" backgroundColor="surface-raised" borderRadius>
|
<Row alignItems="center">
|
||||||
<TeamsButton />
|
<TeamsButton />
|
||||||
{(websiteId || linkId || pixelId || boardId) && (
|
{(websiteId || linkId || pixelId || boardId) && (
|
||||||
<>
|
<>
|
||||||
|
|
@ -93,6 +94,17 @@ export function TopNav() {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
bottom: -16,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
height: 16,
|
||||||
|
background: 'linear-gradient(to bottom, var(--surface-raised), transparent)',
|
||||||
|
pointerEvents: 'none',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</Row>
|
</Row>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ export function BoardEditBody({ requiresBoardWebsite = true }: { requiresBoardWe
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleAddRow = () => {
|
const handle = () => {
|
||||||
updateBoard({
|
updateBoard({
|
||||||
parameters: produce(board.parameters, draft => {
|
parameters: produce(board.parameters, draft => {
|
||||||
if (!draft.rows) {
|
if (!draft.rows) {
|
||||||
|
|
@ -160,14 +160,16 @@ export function BoardEditBody({ requiresBoardWebsite = true }: { requiresBoardWe
|
||||||
))}
|
))}
|
||||||
{canEdit && (
|
{canEdit && (
|
||||||
<Panel minSize={BUTTON_ROW_HEIGHT}>
|
<Panel minSize={BUTTON_ROW_HEIGHT}>
|
||||||
<Row padding="3">
|
<Row paddingY="3">
|
||||||
<TooltipTrigger delay={0}>
|
<TooltipTrigger delay={0}>
|
||||||
<Button variant="outline" onPress={handleAddRow}>
|
<Button variant="outline" onPress={handle}>
|
||||||
<Icon>
|
<Icon>
|
||||||
<Plus />
|
<Plus />
|
||||||
</Icon>
|
</Icon>
|
||||||
</Button>
|
</Button>
|
||||||
<Tooltip placement="bottom">Add row</Tooltip>
|
<Tooltip placement="right" offset={8}>
|
||||||
|
Add row
|
||||||
|
</Tooltip>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
</Row>
|
</Row>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,8 @@ export function BoardEditColumn({
|
||||||
onMouseLeave={() => setShowActions(false)}
|
onMouseLeave={() => setShowActions(false)}
|
||||||
>
|
>
|
||||||
{canEdit && canRemoveAction && showActions && (
|
{canEdit && canRemoveAction && showActions && (
|
||||||
<Box position="absolute" top="22px" right="24px" zIndex={100}>
|
<Box position="absolute" top="12px" right="12px" zIndex={100}>
|
||||||
<Row gap="2">
|
<Row gap="1" padding="2" borderRadius backgroundColor="surface-sunken">
|
||||||
{hasComponent && (
|
{hasComponent && (
|
||||||
<TooltipTrigger delay={0}>
|
<TooltipTrigger delay={0}>
|
||||||
<Button variant="outline" onPress={() => setShowSelect(true)}>
|
<Button variant="outline" onPress={() => setShowSelect(true)}>
|
||||||
|
|
|
||||||
|
|
@ -135,12 +135,14 @@ export function BoardEditRow({
|
||||||
</Group>
|
</Group>
|
||||||
{canEdit && showActions && (
|
{canEdit && showActions && (
|
||||||
<Column
|
<Column
|
||||||
padding="3"
|
padding="2"
|
||||||
gap="1"
|
gap="1"
|
||||||
position="absolute"
|
position="absolute"
|
||||||
top="50%"
|
top="50%"
|
||||||
right="12px"
|
right="12px"
|
||||||
zIndex={20}
|
zIndex={20}
|
||||||
|
backgroundColor="surface-sunken"
|
||||||
|
borderRadius
|
||||||
style={{ transform: 'translateY(-50%)' }}
|
style={{ transform: 'translateY(-50%)' }}
|
||||||
>
|
>
|
||||||
<TooltipTrigger delay={0}>
|
<TooltipTrigger delay={0}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue