Skip to content

Commit 4dcdf61

Browse files
committed
chore: Put more work into list view
1 parent 4224ad5 commit 4dcdf61

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

apps/spuxx-client/src/assets/locales/de.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ lists:
1616
new-list-name: Neue Liste
1717
settings:
1818
title: Einstellungen
19+
name:
20+
label: Name
1921
layout:
2022
side-nav:
2123
lists:
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
import { List } from '@/services/api/lists/lists.types';
22
import { intl } from '@spuxx/js-utils';
3-
import { Container } from '@spuxx/solid';
3+
import { Accordion, Input } from '@spuxx/solid';
44
import { Component } from 'solid-js';
55

66
interface Props {
77
list: List;
88
}
99

1010
export const ListSettings: Component<Props> = (props) => {
11+
// const p = {};
12+
1113
return (
12-
<Container>
13-
{intl('lists.component.settings.title')}
14-
{props.list.name}
15-
</Container>
14+
<Accordion>
15+
<Accordion.Item
16+
title={intl('lists.component.settings.title')}
17+
icon="mdi:gear"
18+
>
19+
<Input
20+
label={intl('lists.component.settings.name.label')}
21+
size="full"
22+
// value={props.list.name}
23+
/>
24+
</Accordion.Item>
25+
</Accordion>
1626
);
1727
};
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { List } from '@/services/api/lists/lists.types';
2-
import { Container, Heading, Icon } from '@spuxx/solid';
2+
import { Heading, Icon } from '@spuxx/solid';
33
import { Component } from 'solid-js';
44
import { ListItems } from './list-items.component';
55
import { ListSettings } from './list-settings.component';
@@ -10,13 +10,13 @@ interface Props {
1010

1111
export const ListView: Component<Props> = (props) => {
1212
return (
13-
<Container class="text-center">
13+
<>
1414
<Heading level={2}>
1515
<Icon icon={props.list.icon} />
1616
{props.list.name}
1717
</Heading>
1818
<ListItems list={props.list} />
1919
<ListSettings list={props.list} />
20-
</Container>
20+
</>
2121
);
2222
};

apps/spuxx-client/src/features/lists/pages/list.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const ListPage: Component = () => {
2323
createEffect(() => {});
2424

2525
return (
26-
<Container class="text-center m-auto">
26+
<Container class="text-center m-auto w-2xl">
2727
<Show when={status() === HttpRequestStatus.pending}>
2828
{/* TODO: Move to Loader component in @spuxx/solid? */}
2929
<Icon icon="svg-spinners:ring-resize" class="text-2xl" />

0 commit comments

Comments
 (0)