mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-08 14:35:49 +01:00
Styling fixes
This commit is contained in:
@@ -89,7 +89,13 @@ function DayComponent(props: any) {
|
|||||||
{/* TODO: #6 Make the color of the indicator dependant on the type of medias avilable */}
|
{/* TODO: #6 Make the color of the indicator dependant on the type of medias avilable */}
|
||||||
<>
|
<>
|
||||||
{radarrFiltered.length > 0 && (
|
{radarrFiltered.length > 0 && (
|
||||||
<Indicator size={8} offset={10} position="bottom-center" color="yellow" children={null} />
|
<Indicator
|
||||||
|
size={8}
|
||||||
|
offset={10}
|
||||||
|
position="bottom-center"
|
||||||
|
color="yellow"
|
||||||
|
children={null}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
{sonarrFiltered.length > 0 && (
|
{sonarrFiltered.length > 0 && (
|
||||||
<Indicator size={8} offset={-12} position="top-end" color="blue" children={null} />
|
<Indicator size={8} offset={-12} position="top-end" color="blue" children={null} />
|
||||||
@@ -99,11 +105,14 @@ function DayComponent(props: any) {
|
|||||||
width={700}
|
width={700}
|
||||||
onClose={() => setOpened(false)}
|
onClose={() => setOpened(false)}
|
||||||
opened={opened}
|
opened={opened}
|
||||||
target={day}
|
// TODO: Fix this !! WTF ?
|
||||||
|
target={` ${day}`}
|
||||||
>
|
>
|
||||||
<ScrollArea style={{ height: 400 }}>
|
<ScrollArea style={{ height: 400 }}>
|
||||||
{sonarrFiltered.length > 0 && <SonarrMediaDisplay media={sonarrFiltered[0]} />}
|
{sonarrFiltered.length > 0 && <SonarrMediaDisplay media={sonarrFiltered[0]} />}
|
||||||
{(radarrFiltered.length > 0 && sonarrFiltered.length > 0) && <Divider variant="dashed" my="xl" />}
|
{radarrFiltered.length > 0 && sonarrFiltered.length > 0 && (
|
||||||
|
<Divider variant="dashed" my="xl" />
|
||||||
|
)}
|
||||||
{radarrFiltered.length > 0 && <RadarrMediaDisplay media={radarrFiltered[0]} />}
|
{radarrFiltered.length > 0 && <RadarrMediaDisplay media={radarrFiltered[0]} />}
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|||||||
@@ -17,14 +17,7 @@ export function RadarrMediaDisplay(props: any) {
|
|||||||
// Return a movie poster containting the title and the description
|
// Return a movie poster containting the title and the description
|
||||||
return (
|
return (
|
||||||
<Group noWrap align="self-start">
|
<Group noWrap align="self-start">
|
||||||
<Image
|
<Image fit="cover" src={poster.url} alt={media.title} width={300} height={400} />
|
||||||
fit="cover"
|
|
||||||
src={poster.url}
|
|
||||||
alt={media.title}
|
|
||||||
style={{
|
|
||||||
maxWidth: 300,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Stack
|
<Stack
|
||||||
justify="space-between"
|
justify="space-between"
|
||||||
sx={(theme) => ({
|
sx={(theme) => ({
|
||||||
@@ -60,13 +53,7 @@ export function SonarrMediaDisplay(props: any) {
|
|||||||
// Return a movie poster containting the title and the description
|
// Return a movie poster containting the title and the description
|
||||||
return (
|
return (
|
||||||
<Group noWrap align="self-start">
|
<Group noWrap align="self-start">
|
||||||
<Image
|
<Image src={poster.url} fit="cover" width={300} height={400} alt={media.series.title} />
|
||||||
src={poster.url}
|
|
||||||
fit="cover"
|
|
||||||
width={300}
|
|
||||||
height={400}
|
|
||||||
alt={media.series.title}
|
|
||||||
/>
|
|
||||||
<Stack
|
<Stack
|
||||||
justify="space-between"
|
justify="space-between"
|
||||||
sx={(theme) => ({
|
sx={(theme) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user