Skip to content

Commit f744c26

Browse files
author
Anshpreet
committed
fixed the alignment of the span element
1 parent 92db3ef commit f744c26

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/mapml.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,6 @@ button.mapml-button:disabled,
634634
justify-content: center;
635635
}
636636

637-
.mapml-layer-item-properties label {
638-
text-indent: 5px;
639-
}
640-
641637

642638
.mapml-layer-item-remove-control,
643639
.mapml-layer-item-settings-control {
@@ -648,9 +644,15 @@ button.mapml-button:disabled,
648644
}
649645

650646
.mapml-layer-item-toggle{
647+
display: inline-flex !important;
651648
width: 100%;
652649
}
653650

651+
.mapml-layer-item-name {
652+
word-break: break-word;
653+
text-align: left;
654+
}
655+
654656
.mapml-layer-item-settings > * {
655657
display: block;
656658
padding-block-start: .25rem;

src/mapml/layers/MapLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ export var MapMLLayer = L.Layer.extend({
554554
legendLink.draggable = false;
555555
layerItemName.appendChild(legendLink);
556556
} else {
557-
layerItemName.innerHTML = ' ' + this._title;
557+
layerItemName.innerHTML = this._title;
558558
}
559559
layerItemName.id = this._title;
560560
opacityControlSummary.innerText = 'Opacity';

test/e2e/core/drag.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jest.setTimeout(30000);
7575

7676
expect(controlText.toLowerCase()).toContain(domLayer.toLowerCase());
7777
expect(layerIndex).toEqual("2");
78-
expect(controlText).toBe(" Canada Base Map - Transportation (CBMT)");
78+
expect(controlText).toBe("Canada Base Map - Transportation (CBMT)");
7979
});
8080

8181
test("[" + browserType + "]" + " Moving layer up one in control overlay", async () => {
@@ -103,7 +103,7 @@ jest.setTimeout(30000);
103103

104104
expect(controlText.toLowerCase()).toContain(domLayer.toLowerCase());
105105
expect(layerIndex).toEqual("1");
106-
expect(controlText).toBe(" Static MapML With Tiles");
106+
expect(controlText).toBe("Static MapML With Tiles");
107107
});
108108

109109
});

0 commit comments

Comments
 (0)