diff --git a/public/css/openinghourstable.css b/public/css/openinghourstable.css index 877355426..97986c24b 100644 --- a/public/css/openinghourstable.css +++ b/public/css/openinghourstable.css @@ -1,7 +1,5 @@ .oh-table { - width: 100%; - height: 100%; text-align: center; word-break: normal; word-wrap: normal; diff --git a/src/UI/OpeningHours/OpeningHoursPicker.ts b/src/UI/OpeningHours/OpeningHoursPicker.ts index de5dd9fca..6cf5de63f 100644 --- a/src/UI/OpeningHours/OpeningHoursPicker.ts +++ b/src/UI/OpeningHours/OpeningHoursPicker.ts @@ -2,10 +2,8 @@ import { UIEventSource } from "../../Logic/UIEventSource" import OpeningHoursPickerTable from "./OpeningHoursPickerTable" import { OH, OpeningHour } from "./OpeningHours" import { InputElement } from "../Input/InputElement" -import BaseUIElement from "../BaseUIElement" export default class OpeningHoursPicker extends InputElement { - public readonly IsSelected: UIEventSource = new UIEventSource(false) private readonly _ohs: UIEventSource private readonly _backgroundTable: OpeningHoursPickerTable @@ -21,10 +19,6 @@ export default class OpeningHoursPicker extends InputElement { this._backgroundTable.ConstructElement() } - InnerRender(): BaseUIElement { - return this._backgroundTable - } - GetValue(): UIEventSource { return this._ohs } diff --git a/src/UI/OpeningHours/OpeningHoursPickerTable.ts b/src/UI/OpeningHours/OpeningHoursPickerTable.ts index dce9a8e10..543cac73b 100644 --- a/src/UI/OpeningHours/OpeningHoursPickerTable.ts +++ b/src/UI/OpeningHours/OpeningHoursPickerTable.ts @@ -34,7 +34,7 @@ export default class OpeningHoursPickerTable extends InputElement constructor(source?: UIEventSource) { super() this.source = source ?? new UIEventSource([]) - this.SetStyle("width:100%;height:100%;display:block;") + this.SetClass("w-full block") } IsValid(t: OpeningHour[]): boolean { diff --git a/src/UI/Popup/TagRendering/FreeformInput.svelte b/src/UI/Popup/TagRendering/FreeformInput.svelte index 6dae0bf39..f3ccbdee4 100644 --- a/src/UI/Popup/TagRendering/FreeformInput.svelte +++ b/src/UI/Popup/TagRendering/FreeformInput.svelte @@ -38,7 +38,7 @@ } -
+
{#if inline}