diff --git a/Backend/models/workDay.go b/Backend/models/workDay.go index e69723c..78094e8 100644 --- a/Backend/models/workDay.go +++ b/Backend/models/workDay.go @@ -101,7 +101,12 @@ func (d *WorkDay) GetWorkDays(card_uid string, tsFrom, tsTo time.Time) []WorkDay workDay.calcPauseTime() } - workDays = append(workDays, workDay) + //TODO: remove + if len(workDay.Bookings) == 1 && workDay.Bookings[0].CounterId == 0 { + log.Println("No booking") + } else { + workDays = append(workDays, workDay) + } } if err = rows.Err(); err != nil { return workDays diff --git a/Backend/static/css/styles.css b/Backend/static/css/styles.css index 90786f3..1476a73 100644 --- a/Backend/static/css/styles.css +++ b/Backend/static/css/styles.css @@ -627,6 +627,9 @@ .flex-grow { flex-grow: 1; } + .grow { + flex-grow: 1; + } .grow-1 { flex-grow: 1; } diff --git a/Backend/templates/headerComponent.templ b/Backend/templates/headerComponent.templ index a44ea10..bff5766 100644 --- a/Backend/templates/headerComponent.templ +++ b/Backend/templates/headerComponent.templ @@ -3,7 +3,7 @@ package templates templ headerComponent() {
} diff --git a/Backend/templates/headerComponent_templ.go b/Backend/templates/headerComponent_templ.go index 49ef799..e3cf58d 100644 --- a/Backend/templates/headerComponent_templ.go +++ b/Backend/templates/headerComponent_templ.go @@ -29,7 +29,7 @@ func headerComponent() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/Backend/templates/timeComponents.templ b/Backend/templates/timeComponents.templ index 8f95a66..518ead4 100644 --- a/Backend/templates/timeComponents.templ +++ b/Backend/templates/timeComponents.templ @@ -64,14 +64,7 @@ templ dayComponent(workDay models.WorkDay) { @lineComponent()