mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
💄 Styling changes for medias and AppShelf
This commit is contained in:
@@ -134,11 +134,15 @@ const AppShelf = (props: any) => {
|
|||||||
onChange={(idx) => settoggledCategories(idx)}
|
onChange={(idx) => settoggledCategories(idx)}
|
||||||
>
|
>
|
||||||
{categoryList.map((category, idx) => (
|
{categoryList.map((category, idx) => (
|
||||||
<Accordion.Item label={category}>{item(category)}</Accordion.Item>
|
<Accordion.Item key={category} label={category}>
|
||||||
|
{item(category)}
|
||||||
|
</Accordion.Item>
|
||||||
))}
|
))}
|
||||||
{/* Return the item for all services without category */}
|
{/* Return the item for all services without category */}
|
||||||
{noCategory && noCategory.length > 0 ? (
|
{noCategory && noCategory.length > 0 ? (
|
||||||
<Accordion.Item label="Other">{item()}</Accordion.Item>
|
<Accordion.Item key="Other" label="Other">
|
||||||
|
{item()}
|
||||||
|
</Accordion.Item>
|
||||||
) : null}
|
) : null}
|
||||||
</Accordion>
|
</Accordion>
|
||||||
<ModuleWrapper mt="xl" module={DownloadsModule} />
|
<ModuleWrapper mt="xl" module={DownloadsModule} />
|
||||||
|
|||||||
@@ -86,9 +86,9 @@ export function MediaDisplay(props: { media: IMedia }) {
|
|||||||
)}
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
<Group direction="column" position="apart">
|
<Group direction="column" position="apart">
|
||||||
<ScrollArea style={{ height: 250, maxWidth: 700 }}>{media.overview}</ScrollArea>
|
<ScrollArea style={{ height: 280, maxWidth: 700 }}>{media.overview}</ScrollArea>
|
||||||
<Group align="center" position="center" spacing="xs">
|
<Group align="center" position="center" spacing="xs">
|
||||||
{media.genres.map((genre: string, i: number) => (
|
{media.genres.slice(-5).map((genre: string, i: number) => (
|
||||||
<Badge size="sm" key={i}>
|
<Badge size="sm" key={i}>
|
||||||
{genre}
|
{genre}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|||||||
Reference in New Issue
Block a user