diff --git a/ImmichFrame.WebApi/Models/WebClientSettings.cs b/ImmichFrame.WebApi/Models/WebClientSettings.cs index f23c915..ba5a1a0 100644 --- a/ImmichFrame.WebApi/Models/WebClientSettings.cs +++ b/ImmichFrame.WebApi/Models/WebClientSettings.cs @@ -14,12 +14,15 @@ public class WebClientSettings : IWebClientSettings public int RenewImagesDuration { get; set; } = 20; public bool ShowClock { get; set; } = true; public string? ClockFormat { get; set; } = "hh:mm"; + public string? ClockPosition { get; set; } = "bottom-0 left-0"; public bool ShowPhotoDate { get; set; } = true; public string? PhotoDateFormat { get; set; } = "MM/dd/yyyy"; public bool ShowImageDesc { get; set; } = true; public bool ShowPeopleDesc { get; set; } = true; public bool ShowImageLocation { get; set; } = true; public string? ImageLocationFormat { get; set; } = "City,State,Country"; + public string? ImageInfoPosition { get; set; } = "bottom-0 right-0"; + public string? WebCalendarPosition { get; set; } = "top-0 right-0"; public string? PrimaryColor { get; set; } public string? SecondaryColor { get; set; } public string Style { get; set; } = "none"; diff --git a/docker/Settings.example.json b/docker/Settings.example.json index 62a2c3a..c1468ce 100644 --- a/docker/Settings.example.json +++ b/docker/Settings.example.json @@ -25,15 +25,18 @@ "Webcalendars": [ "" ], + "WebCalendarPosition": "top-0 right-0", "RefreshAlbumPeopleInterval": 12, "ShowClock": true, "ClockFormat": "HH:mm:ss", + "ClockPosition": "bottom-0 left-0", "ShowPhotoDate": true, "PhotoDateFormat": "yyyy-MM-dd", "ShowImageDesc": true, "ShowPeopleDesc": true, "ShowImageLocation": true, "ImageLocationFormat": "City,State,Country", + "ImageInfoPosition": "bottom-0 right-0", "PrimaryColor": "#FF5733", "SecondaryColor": "#000000", "Style": "none", diff --git a/docker/example.env b/docker/example.env index 9cc1639..0305081 100644 --- a/docker/example.env +++ b/docker/example.env @@ -14,15 +14,18 @@ ExcludedAlbums=ALBUM3,ALBUM4 People=PERSON1,PERSON2 ExcludedPeople=PERSON1,PERSON2 Webcalendars=https://calendar.mycalendar.com/basic.ics,webcal://calendar.mycalendar.com/basic.ics +WebCalendarPosition="top-0 right-0" RefreshAlbumPeopleInterval=12 ShowClock=true ClockFormat=HH:mm:ss +ClockPosition="bottom-0 left-0" ShowPhotoDate=true PhotoDateFormat=yyyy-MM-dd ShowImageDesc=true ShowPeopleDesc=true ShowImageLocation=true ImageLocationFormat=City,State,Country +ImageInfoPosition="bottom-0 right-0" PrimaryColor=#FF5733 SecondaryColor=#000000 Style=none diff --git a/immichFrame.Web/src/lib/components/elements/appointments.svelte b/immichFrame.Web/src/lib/components/elements/appointments.svelte index 70a3f1e..5f48eee 100644 --- a/immichFrame.Web/src/lib/components/elements/appointments.svelte +++ b/immichFrame.Web/src/lib/components/elements/appointments.svelte @@ -11,6 +11,7 @@ } let appointments: api.IAppointment[] = $state() as api.IAppointment[]; + let webCalendarPosition = $derived($configStore.webCalendarPosition ?? 'top-0 right-0'); onMount(() => { GetAppointments(); @@ -37,7 +38,7 @@ {#if appointments}