diff --git a/src/main/js/bundles/dn_labeling/LabelingWidget.vue b/src/main/js/bundles/dn_labeling/LabelingWidget.vue index 50b3223..536e44b 100644 --- a/src/main/js/bundles/dn_labeling/LabelingWidget.vue +++ b/src/main/js/bundles/dn_labeling/LabelingWidget.vue @@ -16,10 +16,10 @@ --> - + -
-
+ +
+
- icon-play - {{ i18n.labeling.start }} - - - icon-pause - {{ i18n.labeling.stop }} + {{ !active ? "icon-play" : "icon-pause" }} + {{ !active ? i18n.labeling.start : i18n.labeling.stop }} icon-trashcan-detailed diff --git a/src/main/js/bundles/dn_labeling/css/styles.css b/src/main/js/bundles/dn_labeling/css/styles.css index 52e5367..775aee9 100644 --- a/src/main/js/bundles/dn_labeling/css/styles.css +++ b/src/main/js/bundles/dn_labeling/css/styles.css @@ -13,15 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -.ctAppRoot .labelingWidget .labelingWidgetContainer { +.ctAppRoot .ct-labeling-widget { display: flex; flex-direction: column; height: 100%; + justify-content: space-between; - .__selections-div { + .ct-labeling-widget__selections { display: flex; flex-direction: column; - flex-grow: 1; + flex: 1 1 auto; + overflow: auto; .v-select__selections { display: grid; @@ -31,18 +33,19 @@ .v-chip { width: 98%; - .v-chip__content{ + .v-chip__content { width: 100%; padding: 0; + cursor: move; } } } } - .__controls-div { + .ct-labeling-widget__controls-div { display: flex; flex-direction: column; - flex-shrink: 1; + flex: 0 0 auto; .circumference-switch { margin-top: 0; @@ -53,30 +56,23 @@ margin-left: 0; } } -} - -.ctAppRoot .labelingWidget .v-btn--icon{ - margin: 0; -} -.ctAppRoot .labelingWidget #editText{ - padding: 5px; - margin: 10px; -} + .v-btn--icon { + margin: 0; + } -.ctAppRoot .labelingWidget #iconRight{ - float: right; -} + .ct-labeling-widget__edit-inputs { + padding: 5px; + margin: 10px; + } -.ctAppRoot .labelingWidget #autocomplete { - display: none; -} + .ct-labeling-widget__draggable-select.v-input--is-dirty .v-input__slot:before { + display: none; + } -.ctAppRoot .labelingWidget .draggableSelect.v-input--is-dirty .v-input__slot:before { - display: none; + .ct-labeling-widget__selections .v-select__selections .v-chip span { + color: #45474d; + } } -.ctAppRoot .labelingWidget .labelingWidgetContainer .__selections-div .v-select__selections .v-chip span { - color: #45474d; -} diff --git a/src/main/js/bundles/dn_labeling/nls/bundle.ts b/src/main/js/bundles/dn_labeling/nls/bundle.ts index 12e1dd0..a6c68ac 100644 --- a/src/main/js/bundles/dn_labeling/nls/bundle.ts +++ b/src/main/js/bundles/dn_labeling/nls/bundle.ts @@ -38,6 +38,9 @@ const i18n = { tooltip: "Labeling Tool", selectionTitle: "Select Layer", selectionFields: "Select Fields", + editAttributeLabel: "Edit attribute label", + finishEditingAttributeLabel: "Finish editing attribute label", + deleteAttributeLabel: "Delete attribute label", edgesLabel: "Label Edge Lengths", autoUpdate: "Keep updated", prefix: "Prefix", diff --git a/src/main/js/bundles/dn_labeling/nls/de/bundle.ts b/src/main/js/bundles/dn_labeling/nls/de/bundle.ts index d1a08e7..70e3aa0 100644 --- a/src/main/js/bundles/dn_labeling/nls/de/bundle.ts +++ b/src/main/js/bundles/dn_labeling/nls/de/bundle.ts @@ -40,6 +40,9 @@ export default { tooltip: "Beschriftungswerkzeug", selectionTitle: "Layer auswählen", selectionFields: "Felder auswählen", + editAttributeLabel: "Attributbeschriftung bearbeiten", + finishEditingAttributeLabel: "Bearbeitung der Attributbeschriftung beenden", + deleteAttributeLabel: "Attributbeschriftung entfernen", edgesLabel: "Kantenlängen beschriften", autoUpdate: "Änderungen automatisch anwenden", prefix: "Präfix",