diff --git a/src-web/components/SettingsDialog.tsx b/src-web/components/SettingsDialog.tsx
index 9d8c9124..883c8493 100644
--- a/src-web/components/SettingsDialog.tsx
+++ b/src-web/components/SettingsDialog.tsx
@@ -4,7 +4,9 @@ import { useSettings } from '../hooks/useSettings';
import { useUpdateSettings } from '../hooks/useUpdateSettings';
import { useUpdateWorkspace } from '../hooks/useUpdateWorkspace';
import { Checkbox } from './core/Checkbox';
+import { Heading } from './core/Heading';
import { Input } from './core/Input';
+import { Separator } from './core/Separator';
import { HStack, VStack } from './core/Stacks';
export const SettingsDialog = () => {
@@ -19,7 +21,39 @@ export const SettingsDialog = () => {
return (
+
+ Appearance
+
+
+
+
+ Workspace ({workspace.name})
+ parseInt(value) >= 0}
+ onChange={(v) => updateWorkspace.mutateAsync({ settingRequestTimeout: parseInt(v) || 0 })}
+ />
+
{
updateWorkspace.mutateAsync({ settingFollowRedirects })
}
/>
-
- parseInt(value) >= 0}
- onChange={(v) => updateWorkspace.mutateAsync({ settingRequestTimeout: parseInt(v) || 0 })}
- />
-
-
- Appearance
-
-
{/**/}
diff --git a/src-web/components/core/Dialog.tsx b/src-web/components/core/Dialog.tsx
index 4b4249a5..2ca040f3 100644
--- a/src-web/components/core/Dialog.tsx
+++ b/src-web/components/core/Dialog.tsx
@@ -65,8 +65,9 @@ export function Dialog({
)}
>
{title ? (
-
- {title}
+
+ {' '}
+ {title}{' '}
) : (
diff --git a/src-web/components/core/Dropdown.tsx b/src-web/components/core/Dropdown.tsx
index 730cc27a..d473e336 100644
--- a/src-web/components/core/Dropdown.tsx
+++ b/src-web/components/core/Dropdown.tsx
@@ -383,7 +383,11 @@ const Menu = forwardRef, MenuPro
>
{items.map((item, i) => {
if (item.type === 'separator') {
- return ;
+ return (
+
+ {item.label}
+
+ );
}
if (item.hidden) {
return null;
diff --git a/src-web/components/core/Heading.tsx b/src-web/components/core/Heading.tsx
index 86fe734b..52053051 100644
--- a/src-web/components/core/Heading.tsx
+++ b/src-web/components/core/Heading.tsx
@@ -1,10 +1,22 @@
import classNames from 'classnames';
-import type { HTMLAttributes } from 'react';
+import type { ComponentType, HTMLAttributes } from 'react';
-export function Heading({ className, children, ...props }: HTMLAttributes) {
+interface Props extends HTMLAttributes {
+ size?: 1 | 2 | 3;
+}
+
+export function Heading({ className, size = 1, ...props }: Props) {
+ const Component = size === 1 ? 'h1' : size === 2 ? 'h2' : 'h3';
return (
-
- {children}
-
+
);
}
diff --git a/src-web/components/core/Separator.tsx b/src-web/components/core/Separator.tsx
index d863b3e9..8321303b 100644
--- a/src-web/components/core/Separator.tsx
+++ b/src-web/components/core/Separator.tsx
@@ -4,18 +4,18 @@ interface Props {
orientation?: 'horizontal' | 'vertical';
variant?: 'primary' | 'secondary';
className?: string;
- label?: string;
+ children?: string;
}
export function Separator({
className,
variant = 'primary',
orientation = 'horizontal',
- label,
+ children,
}: Props) {
return (
- {label &&
{label}
}
+ {children &&
{children}
}