Skip to content

Commit

Permalink
feat(apps/web): Small visual tweaks across multiple components
Browse files Browse the repository at this point in the history
  • Loading branch information
nevendyulgerov committed Jan 28, 2025
1 parent 6809b13 commit 4700be4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/applications/[address]/inputs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ApplicationInputsPage: FC<ApplicationInputsPageProps> = async (props) => {
<Text>Inputs</Text>
</Breadcrumbs>

<PageTitle title="Application Inputs" Icon={TbInbox} />
<PageTitle title="Inputs" Icon={TbInbox} />
<Inputs applicationId={params.address} />
</Stack>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/applications/[address]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const ApplicationPage: FC<ApplicationPageProps> = async (props) => {
<Address value={params.address as AddressType} icon shorten />
</Breadcrumbs>

<PageTitle title="Application Summary" Icon={TbStack2} />
<PageTitle title="Summary" Icon={TbStack2} />
<ApplicationSummary applicationId={params.address} />
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ApplicationSummary: FC<ApplicationSummaryProps> = ({ applicationId }) => {
return (
<Stack>
<Grid gutter="sm">
<Grid.Col span={{ base: 6, md: 3 }} mb="sm">
<Grid.Col span={{ base: 12, sm: 6, md: 3 }} mb="sm">
<SummaryCard
title="Inputs"
value={data?.inputsConnection?.totalCount ?? 0}
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/connection/connectionSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ export const ConnectionSummary: FC<ConnectionSummaryProps> = ({ url }) => {

return (
<>
<Grid.Col span={{ base: 6, md: 3 }} mb="sm">
<Grid.Col span={{ base: 12, sm: 6, md: 3 }} mb="sm">
<SummaryCard
title="Notices"
value={result.data?.notices.totalCount ?? 0}
icon={TbAlertTriangle}
/>
</Grid.Col>
<Grid.Col span={{ base: 6, md: 3 }} mb="sm">
<Grid.Col span={{ base: 12, sm: 6, md: 3 }} mb="sm">
<SummaryCard
title="Vouchers"
value={result.data?.vouchers.totalCount ?? 0}
icon={TbTicket}
/>
</Grid.Col>
<Grid.Col span={{ base: 6, md: 3 }} mb="sm">
<Grid.Col span={{ base: 12, sm: 6, md: 3 }} mb="sm">
<SummaryCard
title="Reports"
value={result.data?.reports.totalCount ?? 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ const SliceInstructionFields: FC<SliceInstructionFieldsProps> = ({
}, [key]);

return (
<Stack data-testid="slice-instruction-fields">
<Stack
pl={{ base: 0, xs: "sm" }}
data-testid="slice-instruction-fields"
>
<Fieldset p="xs">
<Group justify="space-between">
<Text fw="bold">Define a slice</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const AddConditions: FC<AddConditionsProps> = ({
}, [isValid, conditions, logicalOperator, onConditionalsChange]);

return (
<Stack gap="xs">
<Stack pl={{ base: 0, xs: "sm" }} gap="xs">
{conditions.map((cond, idx) => (
<Stack key={idx}>
{idx > 0 ? (
Expand Down

0 comments on commit 4700be4

Please sign in to comment.