Open damongolding opened 9 hours ago
The changes introduce a new boolean field SleepIcon
to the Config
struct, enhancing configuration options for the Immich Kiosk application. CSS modifications include new selectors and rules for a sleep icon across multiple CSS files, defining its appearance and positioning. Additionally, the Sleep
function in the routes has been updated to use a more modular rendering approach, and a new Sleep
template function has been added to manage the visual representation of sleep mode.
File | Change Summary |
---|---|
config/config.go | Added new field: SleepIcon bool in Config struct. |
custom.example.css | Added new selectors: #sleep-icon{} and #sleep-icon svg{} for sleep icon styles. |
frontend/public/assets/css/kiosk.css | Added new CSS rule: #sleep-icon and nested rule for #sleep-icon svg , defining positioning and styles. |
frontend/src/css/sleep.css | Added new CSS rule: #sleep-icon with various styling properties. |
routes/routes_sleep.go | Updated Sleep function to use views.Sleep for rendering instead of inline HTML. |
views/views_sleep.templ | Introduced new template function Sleep(sleepMode bool, sleepIcon bool) to manage sleep mode rendering logic. |
sequenceDiagram
participant User
participant Frontend
participant Backend
participant Views
User->>Frontend: Request sleep mode
Frontend->>Backend: Call Sleep function
Backend->>Views: Render Sleep(sleepMode, sleepIcon)
Views-->>Backend: Return rendered HTML
Backend-->>Frontend: Send response
Frontend-->>User: Display sleep mode with icon
🐇 In the land of code, a change took flight,
A sleep icon added, oh what a sight!
With styles so neat, it dances with grace,
In the Kiosk's embrace, it finds its place.
So hop along, dear friends, and cheer,
For the sleep mode's here, bringing joy near! 🌙
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
Style
Bug Fixes