Skip to content

Commit ce40729

Browse files
committed
Side inspector width improvements
1 parent c7f1364 commit ce40729

File tree

1 file changed

+15
-8
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.batches

1 file changed

+15
-8
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.batches/route.tsx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { ArrowRightIcon, ExclamationCircleIcon } from "@heroicons/react/20/solid";
1+
import { ExclamationCircleIcon } from "@heroicons/react/20/solid";
22
import { BookOpenIcon } from "@heroicons/react/24/solid";
3-
import { type MetaFunction, Outlet, useNavigation, useParams, useLocation } from "@remix-run/react";
3+
import { type MetaFunction, Outlet, useLocation, useNavigation, useParams } from "@remix-run/react";
44
import { type LoaderFunctionArgs } from "@remix-run/server-runtime";
55
import { formatDuration } from "@trigger.dev/core/v3/utils/durations";
66
import { typedjson, useTypedLoaderData } from "remix-typedjson";
7+
import { RunsIcon } from "~/assets/icons/RunsIcon";
78
import { BatchesNone } from "~/components/BlankStatePanels";
89
import { ListPagination } from "~/components/ListPagination";
910
import { AdminDebugTooltip } from "~/components/admin/debugTooltip";
@@ -13,11 +14,11 @@ import { DateTime } from "~/components/primitives/DateTime";
1314
import { NavBar, PageAccessories, PageTitle } from "~/components/primitives/PageHeader";
1415
import { Paragraph } from "~/components/primitives/Paragraph";
1516
import {
17+
collapsibleHandleClassName,
1618
RESIZABLE_PANEL_ANIMATION,
1719
ResizableHandle,
1820
ResizablePanel,
1921
ResizablePanelGroup,
20-
collapsibleHandleClassName,
2122
} from "~/components/primitives/Resizable";
2223
import { Spinner } from "~/components/primitives/Spinner";
2324
import {
@@ -151,16 +152,16 @@ export default function Page() {
151152
/>
152153
<ResizablePanel
153154
id="batches-inspector"
154-
min="100px"
155-
default="500px"
155+
min="370px"
156+
default="370px"
156157
className="overflow-hidden"
157158
collapsible
158159
collapsed={!isShowingInspector}
159160
onCollapseChange={() => {}}
160161
collapsedSize="0px"
161162
collapseAnimation={RESIZABLE_PANEL_ANIMATION}
162163
>
163-
<div className="h-full" style={{ minWidth: 500 }}>
164+
<div className="h-full" style={{ minWidth: 370 }}>
164165
<Outlet />
165166
</div>
166167
</ResizablePanel>
@@ -300,8 +301,14 @@ function BatchActionsCell({ runsPath }: { runsPath: string }) {
300301
<TableCellMenu
301302
isSticky
302303
hiddenButtons={
303-
<LinkButton to={runsPath} variant="minimal/small" LeadingIcon={ArrowRightIcon}>
304-
View runs
304+
<LinkButton
305+
to={runsPath}
306+
variant="minimal/small"
307+
TrailingIcon={RunsIcon}
308+
trailingIconClassName="text-runs"
309+
className="text-text-bright"
310+
>
311+
<span>View runs</span>
305312
</LinkButton>
306313
}
307314
/>

0 commit comments

Comments
 (0)