Style: better styling of translate buttons, hide translate buttons where not applicable

This commit is contained in:
Pieter Vander Vennet 2023-05-30 23:45:30 +02:00
parent f0f0292d0c
commit 08a604c3f5
10 changed files with 22 additions and 16 deletions

View file

@ -48,6 +48,7 @@ export default class OpeningHoursPickerTable extends InputElement<OpeningHour[]>
protected InnerConstructElement(): HTMLElement {
const table = document.createElement("table")
table.classList.add("oh-table")
table.classList.add("no-weblate")
table.classList.add("relative") // Workaround for webkit-based viewers, see #1019
const cellHeightInPx = 14

View file

@ -76,6 +76,7 @@ export default class OpeningHoursVisualization extends Toggle {
new Loading(Translations.t.general.opening_hours.loadingCountry),
tags.map((tgs) => tgs._country !== undefined)
)
this.SetClass("no-weblate")
}
private static CreateFullVisualisation(oh: any): BaseUIElement {