Remove parameter

This commit is contained in:
Florian Hoss 2024-03-18 18:21:13 +01:00
parent fdcaa8933b
commit dbe504c810
3 changed files with 5 additions and 6 deletions

View file

@ -18,6 +18,9 @@
.extra-sun-icon { .extra-sun-icon {
@apply h-4 w-4 shrink-0 -mb-1 mr-2 text-primary; @apply h-4 w-4 shrink-0 -mb-1 mr-2 text-primary;
} }
.grid-apps {
@apply grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4;
}
.extra-info { .extra-info {
@apply text-xs truncate text-secondary; @apply text-xs truncate text-secondary;
} }

View file

@ -45,5 +45,5 @@ func (bh *AppHandler) appHandler(c echo.Context) error {
titlePage := bh.env.Title titlePage := bh.env.Title
return renderView(c, home.HomeIndex(titlePage, bh.env.Version, bookmarks, staticSystem, liveSystem, weather, home.Home(titlePage, bookmarks, staticSystem, liveSystem, weather))) return renderView(c, home.HomeIndex(titlePage, bh.env.Version, home.Home(titlePage, bookmarks, staticSystem, liveSystem, weather)))
} }

View file

@ -30,7 +30,7 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI
</div> </div>
} }
</div> </div>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4"> <div class="grid-apps">
for _, l := range bookmarks.Links { for _, l := range bookmarks.Links {
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
if l.Category != "" { if l.Category != "" {
@ -51,10 +51,6 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI
templ HomeIndex( templ HomeIndex(
title, title,
version string, version string,
bookmarks *services.Bookmarks,
static *services.StaticInformation,
live *services.LiveInformation,
weather *services.OpenWeather,
cmp templ.Component, cmp templ.Component,
) { ) {
@layout.Base(title, version) { @layout.Base(title, version) {