Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Styles updates for board elements.

Mike Caoe52a6b405b55
diff --git a/src/app/(main)/TopNav.tsx b/src/app/(main)/TopNav.tsx
index 302f0a2f7..9caaeb73c 100644
--- a/src/app/(main)/TopNav.tsx
+++ b/src/app/(main)/TopNav.tsx
@@ -38,8 +38,9 @@ export function TopNav() {
paddingRight="5"
width="100%"
zIndex={100}
+ backgroundColor="surface-raised"
>
- <Row alignItems="center" backgroundColor="surface-raised" borderRadius>
+ <Row alignItems="center">
<TeamsButton />
{(websiteId || linkId || pixelId || boardId) && (
<>
@@ -93,6 +94,17 @@ export function TopNav() {
</>
)}
</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>
);
}
diff --git a/src/app/(main)/boards/[boardId]/BoardEditBody.tsx b/src/app/(main)/boards/[boardId]/BoardEditBody.tsx
index a6df61bb5..1bcb79cb4 100644
--- a/src/app/(main)/boards/[boardId]/BoardEditBody.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardEditBody.tsx
@@ -49,7 +49,7 @@ export function BoardEditBody({ requiresBoardWebsite = true }: { requiresBoardWe
}
};
- const handleAddRow = () => {
+ const handle = () => {
updateBoard({
parameters: produce(board.parameters, draft => {
if (!draft.rows) {
@@ -160,14 +160,16 @@ export function BoardEditBody({ requiresBoardWebsite = true }: { requiresBoardWe
))}
{canEdit && (
<Panel minSize={BUTTON_ROW_HEIGHT}>
- <Row padding="3">
+ <Row paddingY="3">
<TooltipTrigger delay={0}>
- <Button variant="outline" onPress={handleAddRow}>
+ <Button variant="outline" onPress={handle}>
<Icon>
<Plus />
</Icon>
</Button>
- <Tooltip placement="bottom">Add row</Tooltip>
+ <Tooltip placement="right" offset={8}>
+ Add row
+ </Tooltip>
</TooltipTrigger>
</Row>
</Panel>
diff --git a/src/app/(main)/boards/[boardId]/BoardEditColumn.tsx b/src/app/(main)/boards/[boardId]/BoardEditColumn.tsx
index 266a78971..f43f7a8c1 100644
--- a/src/app/(main)/boards/[boardId]/BoardEditColumn.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardEditColumn.tsx
@@ -76,8 +76,8 @@ export function BoardEditColumn({
onMouseLeave={() => setShowActions(false)}
>
{canEdit && canRemoveAction && showActions && (
- <Box position="absolute" top="22px" right="24px" zIndex={100}>
- <Row gap="2">
+ <Box position="absolute" top="12px" right="12px" zIndex={100}>
+ <Row gap="1" padding="2" borderRadius backgroundColor="surface-sunken">
{hasComponent && (
<TooltipTrigger delay={0}>
<Button variant="outline" onPress={() => setShowSelect(true)}>
diff --git a/src/app/(main)/boards/[boardId]/BoardEditRow.tsx b/src/app/(main)/boards/[boardId]/BoardEditRow.tsx
index a89c1ff83..e57be12c1 100644
--- a/src/app/(main)/boards/[boardId]/BoardEditRow.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardEditRow.tsx
@@ -135,12 +135,14 @@ export function BoardEditRow({
</Group>
{canEdit && showActions && (
<Column
- padding="3"
+ padding="2"
gap="1"
position="absolute"
top="50%"
right="12px"
zIndex={20}
+ backgroundColor="surface-sunken"
+ borderRadius
style={{ transform: 'translateY(-50%)' }}
>
<TooltipTrigger delay={0}>