Small styling tweaks

This commit is contained in:
Pieter Vander Vennet 2022-01-24 01:41:57 +01:00
parent c2f79570b7
commit cd09efca94
2 changed files with 5 additions and 4 deletions

View file

@ -54,7 +54,7 @@ export class PreviewPanel extends Combine implements FlowStep<{ features: { prop
}
const uniqueCount = new Set(values).size
if (uniqueCount !== values.length) {
if (uniqueCount !== values.length && uniqueCount < 15) {
attributeOverview.push()
// There are some overlapping values: histogram time!
let hist: BaseUIElement =
@ -84,7 +84,7 @@ export class PreviewPanel extends Combine implements FlowStep<{ features: { prop
continue
}
// All values are different, we add a boring (but collapsable) list
// All values are different or too much unique values, we add a boring (but collapsable) list
attributeOverview.push(new Toggleable(
new Title(key + "=*"),
new Combine([