forked from MapComplete/MapComplete
Fix: remove obsolete "SetClass"-calls which don't work anyway
This commit is contained in:
parent
c2dad6ebc4
commit
4fcdd8ba5a
1 changed files with 8 additions and 15 deletions
|
@ -315,7 +315,7 @@ export class QuestionViz implements SpecialVisualization {
|
||||||
state,
|
state,
|
||||||
onlyForLabels: labels,
|
onlyForLabels: labels,
|
||||||
notForLabels: blacklist,
|
notForLabels: blacklist,
|
||||||
}).SetClass("w-full")
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -435,7 +435,7 @@ export default class SpecialVisualizations {
|
||||||
return new SvelteUIElement(AddNewPoint, {
|
return new SvelteUIElement(AddNewPoint, {
|
||||||
state,
|
state,
|
||||||
coordinate: { lon, lat },
|
coordinate: { lon, lat },
|
||||||
}).SetClass("w-full h-full overflow-auto")
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -564,7 +564,7 @@ export default class SpecialVisualizations {
|
||||||
state,
|
state,
|
||||||
feature,
|
feature,
|
||||||
layer,
|
layer,
|
||||||
}).SetClass("p-0 m-0")
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new ShareLinkViz(),
|
new ShareLinkViz(),
|
||||||
|
@ -1065,7 +1065,7 @@ export default class SpecialVisualizations {
|
||||||
|
|
||||||
constr: (state) => {
|
constr: (state) => {
|
||||||
return new SubtleButton(
|
return new SubtleButton(
|
||||||
new SvelteUIElement(Trash).SetClass("h-6"),
|
new SvelteUIElement(Trash),
|
||||||
Translations.t.general.removeLocationHistory
|
Translations.t.general.removeLocationHistory
|
||||||
).onClick(() => {
|
).onClick(() => {
|
||||||
state.historicalUserLocations.features.setData([])
|
state.historicalUserLocations.features.setData([])
|
||||||
|
@ -1161,8 +1161,6 @@ export default class SpecialVisualizations {
|
||||||
feature,
|
feature,
|
||||||
layer,
|
layer,
|
||||||
})
|
})
|
||||||
.SetClass("px-1")
|
|
||||||
.setSpan()
|
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -1435,11 +1433,7 @@ export default class SpecialVisualizations {
|
||||||
name: "tagrendering",
|
name: "tagrendering",
|
||||||
doc: "An entire tagRenderingConfig",
|
doc: "An entire tagRenderingConfig",
|
||||||
required: true,
|
required: true,
|
||||||
},
|
}
|
||||||
{
|
|
||||||
name: "classes",
|
|
||||||
doc: "CSS-classes to apply on every individual item. Seperated by `space`",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
constr(
|
constr(
|
||||||
state: SpecialVisualizationState,
|
state: SpecialVisualizationState,
|
||||||
|
@ -1448,8 +1442,7 @@ export default class SpecialVisualizations {
|
||||||
feature: Feature,
|
feature: Feature,
|
||||||
layer: LayerConfig
|
layer: LayerConfig
|
||||||
) {
|
) {
|
||||||
const [key, tr, classesRaw] = args
|
const [key, tr] = args
|
||||||
let classes = classesRaw ?? ""
|
|
||||||
const translation = new Translation({ "*": tr })
|
const translation = new Translation({ "*": tr })
|
||||||
return new VariableUiElement(
|
return new VariableUiElement(
|
||||||
featureTags.map((tags) => {
|
featureTags.map((tags) => {
|
||||||
|
@ -1476,7 +1469,7 @@ export default class SpecialVisualizations {
|
||||||
state,
|
state,
|
||||||
feature,
|
feature,
|
||||||
layer,
|
layer,
|
||||||
}).SetClass(classes)
|
})
|
||||||
elements.push(subsTr)
|
elements.push(subsTr)
|
||||||
}
|
}
|
||||||
return elements
|
return elements
|
||||||
|
@ -1689,7 +1682,7 @@ export default class SpecialVisualizations {
|
||||||
state,
|
state,
|
||||||
layer,
|
layer,
|
||||||
feature,
|
feature,
|
||||||
}).SetClass("w-full h-full")
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue