diff --git a/UI/Base/ScrollableFullScreen.ts b/UI/Base/ScrollableFullScreen.ts index 86b1153..9c31997 100644 --- a/UI/Base/ScrollableFullScreen.ts +++ b/UI/Base/ScrollableFullScreen.ts @@ -27,9 +27,9 @@ export default class ScrollableFullScreen extends UIElement { } else { console.error("WARNING: onClose is not defined") } - }).SetClass("mb-2 bg-blue-50 rounded-full w-12 h-12 p-1.5") + }).SetClass("mb-2 bg-blue-50 rounded-full w-12 h-12 p-1.5 flex-shrink-0") - title.SetClass("block w-full text-2xl font-bold p-2 pl-4") + title.SetClass("block text-l sm:text-xl md:text-2xl w-full font-bold p-2 pl-4 max-h-20vh overflow-y-auto") const ornament = new Combine([new Ornament().SetStyle("height:5em;")]) .SetClass("md:hidden h-5") @@ -38,9 +38,9 @@ export default class ScrollableFullScreen extends UIElement { new Combine([ new Combine([ new Combine([returnToTheMap, title]) - .SetClass("border-b-2 border-black shadow md:shadow-none bg-white p-2 pb-0 md:p-0 flex overflow-x-hidden flex-shrink-0 max-h-20vh"), + .SetClass("border-b-2 border-black shadow md:shadow-none bg-white p-2 pb-0 md:p-0 flex flex-shrink-0"), new Combine([content, ornament]) - .SetClass("block p-2 md:pt-4 w-full h-full overflow-y-auto overflow-x-hidden md:max-h-65vh"), + .SetClass("block p-2 md:pt-4 w-full h-full overflow-y-auto md:max-h-65vh"), // We add an ornament which takes around 5em. This is in order to make sure the Web UI doesn't hide ]).SetClass("flex flex-col h-full relative bg-white") ]).SetClass("fixed top-0 left-0 right-0 h-screen w-screen md:max-h-65vh md:w-auto md:relative"); diff --git a/UI/Image/ImageCarousel.ts b/UI/Image/ImageCarousel.ts index c3e6302..c62968f 100644 --- a/UI/Image/ImageCarousel.ts +++ b/UI/Image/ImageCarousel.ts @@ -33,6 +33,7 @@ export class ImageCarousel extends UIElement{ this.slideshow = new SlideShow(uiElements).HideOnEmpty(true); this.SetClass("block w-full"); + this.slideshow.SetClass("w-full"); } /*** diff --git a/UI/Image/ImageUploadFlow.ts b/UI/Image/ImageUploadFlow.ts index 21fed61..4ae250e 100644 --- a/UI/Image/ImageUploadFlow.ts +++ b/UI/Image/ImageUploadFlow.ts @@ -35,7 +35,9 @@ export class ImageUploadFlow extends UIElement { {value: "CC-BY-SA 4.0", shown: Translations.t.image.ccbs}, {value: "CC-BY 4.0", shown: Translations.t.image.ccb} ], - State.state.osmConnection.GetPreference("pictures-license") + State.state.osmConnection.GetPreference("pictures-license"), + "","", + "flex flex-col sm:flex-row" ); licensePicker.SetStyle("float:left"); diff --git a/UI/Input/DropDown.ts b/UI/Input/DropDown.ts index 0bf0ec8..d9ecba0 100644 --- a/UI/Input/DropDown.ts +++ b/UI/Input/DropDown.ts @@ -13,13 +13,16 @@ export class DropDown extends InputElement { public IsSelected: UIEventSource = new UIEventSource(false); private readonly _label_class: string; private readonly _select_class: string; + private _form_style: string; constructor(label: string | UIElement, values: { value: T, shown: string | UIElement }[], value: UIEventSource = undefined, label_class: string = "", - select_class: string = "") { + select_class: string = "", + form_style: string = "flex") { super(undefined); + this._form_style = form_style; this._value = value ?? new UIEventSource(undefined); this._label = Translations.W(label); this._label_class = label_class || ''; @@ -62,7 +65,7 @@ export class DropDown extends InputElement { options += "" } - return `
` + + return `` + `` + `