Skip to content

Commit 0ebccb8

Browse files
committed
💄 Better UI for measurements
1 parent 75c131b commit 0ebccb8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

frontend/src/components/MapEditorMeasureBox.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<InfoBoxTemplate title="Measure">
3-
<div class="columns is-align-items-center">
3+
<div class="columns">
44
<div class="column">
55
<button
6-
class="button"
6+
class="button is-fullwidth"
77
:class="{ 'is-primary': pathDrawEnabled }"
88
@click="$emit('update:pathDrawEnabled', !pathDrawEnabled)"
99
title="If active click on the map to draw a path from clicked tile to clicked tile."
@@ -15,8 +15,10 @@
1515
Draw Move Path
1616
</button>
1717
</div>
18+
</div>
19+
<div class="columns">
1820
<div class="column">
19-
<div class="field has-addons">
21+
<div class="field has-addons is-justify-content-center">
2022
<div class="control">
2123
<button
2224
class="button"

frontend/src/views/MapEditorView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,6 @@ const resetMapMeasureDrawing = () => {
137137

138138
<style scoped lang="scss">
139139
.editor-root {
140-
margin: 0 4rem 1rem;
140+
margin: 0 10rem 1rem;
141141
}
142142
</style>

0 commit comments

Comments
 (0)