diff --git a/erdblick_app/app/coordinates.panel.component.ts b/erdblick_app/app/coordinates.panel.component.ts index 897c9c39..9f89b9fb 100644 --- a/erdblick_app/app/coordinates.panel.component.ts +++ b/erdblick_app/app/coordinates.panel.component.ts @@ -6,6 +6,7 @@ import {CesiumMath} from "./cesium"; import {ClipboardService} from "./clipboard.service"; import {coreLib} from "./wasm"; import {InspectionService} from "./inspection.service"; +import {KeyValue} from "@angular/common"; interface PanelOption { name: string, @@ -37,7 +38,7 @@ interface PanelOption { {{ component }} - +
{{ tileId.key }} @@ -45,7 +46,7 @@ interface PanelOption { {{ tileId.value }}
- +
{{ tileId.key }} @@ -227,4 +228,11 @@ export class CoordinatesPanelComponent { return array; }, new Array())); } + + compareLevels(a: KeyValue , b: KeyValue): number { + const aLevel = parseInt(a.key.match(/\d+/)?.[0] ?? '0', 10); + const bLevel = parseInt(b.key.match(/\d+/)?.[0] ?? '0', 10); + + return aLevel - bLevel; + } } \ No newline at end of file diff --git a/erdblick_app/styles.scss b/erdblick_app/styles.scss index 2cbc2d33..b3c3ce86 100644 --- a/erdblick_app/styles.scss +++ b/erdblick_app/styles.scss @@ -923,7 +923,7 @@ body { padding-bottom: 0; gap: 0.5em; overflow-y: auto; - max-width: calc(100vw - 25em); + max-width: calc(100vw - 35em); align-items: center; & > .coordinates-entry:nth-child(1) {