tweaks for lg size

This commit is contained in:
mbecker20
2026-02-27 03:39:01 -08:00
parent 3d43e2419f
commit 62f0ca9093
6 changed files with 17 additions and 10 deletions

View File

@@ -14,10 +14,10 @@ const Sidebar = ({ close }: { close: () => void }) => {
const location = useLocation().pathname;
const linkProps = { nav, location };
return (
<Stack justify="space-between" gap="md" h="100%" m="xl" mt="24">
<Stack justify="space-between" gap="md" h="96%" m="xl" mt="24">
{/* TOP AREA (scrolling) */}
<ScrollArea>
<Stack gap="0.25rem">
<Stack gap="0.25rem" mr="md">
<SidebarLink
label="Dashboard"
icon={<ICONS.Dashboard size="1rem" />}

View File

@@ -55,7 +55,7 @@ export default function TagSelector({
pl="0.4rem"
className="bordered-heavy"
justify="start"
w={{ base: "100%", xs: "fit-content" }}
w={{ base: "100%", xs: "138" }}
fw="normal"
leftSection={
<Badge

View File

@@ -24,6 +24,7 @@ export default function Settings() {
<Stack gap="xl" mb="50vh">
<SettingsCoreInfo />
<MobileFriendlyTabs
changeAt="xl"
value={view}
onValueChange={setView as any}
tabs={[

View File

@@ -5,7 +5,7 @@ import { useInvalidate, useRead, useSetTitle, useWrite } from "@/lib/hooks";
import ResourceSelector from "@/resources/selector";
import { ICONS } from "@/theme/icons";
import { DataTable, SortableHeader } from "@/ui/data-table";
import { Badge, Group, Switch, TextInput } from "@mantine/core";
import { Badge, Group, Switch, TextInput, useMatches } from "@mantine/core";
import { notifications } from "@mantine/notifications";
import { ColumnDef } from "@tanstack/react-table";
import { Types } from "komodo_client";
@@ -25,6 +25,10 @@ export default function SettingsOnboardingKeys() {
notifications.show({ message: "Updated onboarding key", color: "green" });
},
});
const expiresSize = useMatches({
base: "sm",
xl: "md",
});
const columns: (
| ColumnDef<Types.OnboardingKey, unknown>
| false
@@ -46,6 +50,7 @@ export default function SettingsOnboardingKeys() {
})
}
onKeyDown={(e) => e.key === "Enter" && e.currentTarget.blur()}
miw={200}
/>
),
},
@@ -74,7 +79,7 @@ export default function SettingsOnboardingKeys() {
(tag) => !row.original.tags?.includes(tag._id?.$oid!),
);
return (
<Group>
<Group wrap="nowrap" gap="sm">
<TagSelector
title="Select Tags"
tags={otherTags}
@@ -180,9 +185,10 @@ export default function SettingsOnboardingKeys() {
}) => (
<Badge
color={expires && expires <= Date.now() ? "red" : "accent"}
fz={{ base: "sm", lg: "md" }}
p={{ base: "sm", lg: "md" }}
size="md"
fz={{ base: "sm", xl: "md" }}
p={{ base: "sm", xl: "md" }}
styles={{ label: { width: "fit-content", height: "fit-content" } }}
size={expiresSize}
>
{expires ? fmtDateWithMinutes(new Date(expires)) : "Never"}
</Badge>

View File

@@ -94,7 +94,7 @@ export default function ResourceSelector({
w="fit-content"
maw="100%"
rightSection={
<Group gap="xs" ml="sm">
<Group gap="xs" ml="sm" wrap="nowrap">
{clearable && (
<ActionIcon
size="sm"

View File

@@ -275,7 +275,7 @@ export const SortableHeader = <T, V>({
style={{ width: "100%" }}
>
<Group justify="space-between" gap="sm" wrap="nowrap">
<Group gap="xs">
<Group justify="start" gap="xs" wrap="nowrap" miw="120" w="fit-content">
<Text fw={600} size="sm" lineClamp={1}>
{title}
</Text>