App card width slider

Added a slider to determine the XL app card width
This commit is contained in:
Aimsucks
2022-06-14 17:45:22 +00:00
parent 778988de58
commit bd920dfc86
4 changed files with 52 additions and 1 deletions

View File

@@ -101,7 +101,14 @@ const AppShelf = (props: any) => {
<SortableContext items={config.services}>
<Grid gutter="xl" align="center">
{filtered.map((service) => (
<Grid.Col key={service.id} span={6} xl={2} xs={4} sm={3} md={3}>
<Grid.Col
key={service.id}
span={6}
xl={config.settings.appCardWidth || 2}
xs={4}
sm={3}
md={3}
>
<SortableAppShelfItem service={service} key={service.id} id={service.id} />
</Grid.Col>
))}