Skip to content

Commit 2cf0330

Browse files
committed
feat: table details drawer
1 parent 2e2ff2c commit 2cf0330

File tree

9 files changed

+1127
-62
lines changed

9 files changed

+1127
-62
lines changed

e2e/questdb

Submodule questdb updated 140 files

src/components/Badge/index.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export enum BadgeType {
66
INFO = "info",
77
WARNING = "warning",
88
ERROR = "error",
9+
DISABLED = "disabled",
910
}
1011

1112
type Props = {
@@ -38,7 +39,7 @@ const Root = styled.span<Pick<Props, "type" | "pulsate">>`
3839
position: relative;
3940
padding: 0 1rem;
4041
border: 1px solid transparent;
41-
border-radius: ${({ theme }) => theme.borderRadius};
42+
border-radius: 0.8rem;
4243
line-height: 1.15;
4344
height: 3rem;
4445
color: ${({ theme }) => theme.color.white};
@@ -52,13 +53,13 @@ const Root = styled.span<Pick<Props, "type" | "pulsate">>`
5253
left: 0;
5354
top: 0;
5455
opacity: 0.075;
55-
border-radius: ${({ theme }) => theme.borderRadius};
56+
border-radius: 0.7rem;
5657
}
5758
5859
${({ type, theme }) =>
5960
type === BadgeType.INFO &&
6061
css`
61-
color: ${theme.color.foreground};
62+
color: ${theme.color.cyan};
6263
`}
6364
6465
${({ type, theme }) =>
@@ -91,6 +92,16 @@ const Root = styled.span<Pick<Props, "type" | "pulsate">>`
9192
}
9293
`}
9394
95+
${({ type, theme }) =>
96+
type === BadgeType.DISABLED &&
97+
css`
98+
color: ${theme.color.gray2};
99+
100+
&:after {
101+
background: transparent;
102+
}
103+
`}
104+
94105
${(props) =>
95106
props.pulsate &&
96107
css`
@@ -108,7 +119,7 @@ const Icon = styled.div<{ hasGap: boolean }>`
108119
${({ hasGap }) =>
109120
hasGap &&
110121
css`
111-
margin-right: 0.75rem;
122+
margin-right: 0.5rem;
112123
`}
113124
`
114125

src/components/LiteEditor/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const EditorWrapper = styled.div<{ $noBorder?: boolean }>`
1515
border: ${({ $noBorder, theme }) =>
1616
$noBorder ? "none" : `1px solid ${theme.color.selection}`};
1717
background: ${({ theme }) => theme.color.backgroundDarker};
18+
overflow: hidden;
1819
1920
.monaco-editor-background {
2021
background: ${({ theme }) => theme.color.backgroundDarker};

src/scenes/Schema/Row/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ const getIcon = (type: string) => {
280280
return <IconWrapper icon={iconConfig?.icon ?? DotIcon} type={type} />
281281
}
282282

283-
const ColumnIcon = ({
283+
export const ColumnIcon = ({
284284
isDesignatedTimestamp,
285285
type,
286286
}: {

0 commit comments

Comments
 (0)