Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions app/src/components/IngredientReadView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface IngredientReadViewProps {
title: string;
subtitle?: string;
buttonLabel?: string;
emptyState?: React.ReactNode;
onBuild?: () => void;
isLoading: boolean;
isError: boolean;
Expand All @@ -37,6 +38,7 @@ export default function IngredientReadView({
title,
subtitle,
buttonLabel,
emptyState,
onBuild,
isLoading,
isError,
Expand Down Expand Up @@ -81,21 +83,6 @@ export default function IngredientReadView({
</div>
</div>

{/* Title Section */}
<div style={{ marginBottom: spacing.xl }}>
<Title
order={2}
style={{
fontSize: typography.fontSize.lg,
fontWeight: typography.fontWeight.semibold,
color: colors.text.title,
marginBottom: spacing.lg,
}}
>
{title}
</Title>
</div>

{/* Content Section */}
<div
style={{
Expand All @@ -122,7 +109,7 @@ export default function IngredientReadView({
<>
{data.length === 0 ? (
<div style={{ padding: spacing['3xl'] }}>
<EmptyState ingredient={ingredient} />
{emptyState || <EmptyState ingredient={ingredient} />}
</div>
) : (
<Table>
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/StandardLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function StandardLayout({ children }: StandardLayoutProps) {
>
<Sidebar />
</nav>
<main className="tw:flex-1 tw:min-w-0 tw:max-w-[calc(100vw-300px)] tw:overflow-y-auto tw:overflow-x-hidden tw:p-[24px] tw:bg-gray-50">
<main className="tw:flex-1 tw:min-w-0 tw:max-w-full tw:overflow-y-auto tw:overflow-x-hidden tw:bg-gray-50 tw:p-[24px] sm:tw:max-w-[calc(100vw-300px)]">
{children}
</main>
</div>
Expand Down
Loading
Loading