Skip to content

Commit aca32ed

Browse files
committed
[styling] Fix tooltips and some alignments
1 parent d3630de commit aca32ed

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

src/components/control/ControlFlowBar.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22
<div class="control-flaw-bar">
3-
<span v-b-tooltip.hover
4-
:title="'Immediately stop all robots (' + Object.keys(keymapHalt)[0] + ')'">
3+
<div v-b-tooltip.hover
4+
:title="'Immediately stop all robots (' + Object.keys(keymapHalt)[0] + ')'">
55
<b-button v-hotkey="keymapHalt"
66
ref="btnHalt"
77
v-on:click="send('halt')"
88
v-bind:disabled="halted">
99
Halt
1010
</b-button>
11-
</span>
11+
</div>
1212

13-
<span v-b-tooltip.hover
13+
<div v-b-tooltip.hover
1414
:title="'Continue based on last game event (' + Object.keys(keymapContinue)[0] + ')'">
1515
<b-button v-hotkey="keymapContinue"
1616
ref="btnContinue"
@@ -22,7 +22,7 @@
2222
{{state.nextCommand}}
2323
</span>
2424
</b-button>
25-
</span>
25+
</div>
2626
</div>
2727
</template>
2828

@@ -82,5 +82,7 @@
8282
position: fixed;
8383
bottom: 0;
8484
text-align: center;
85+
display: flex;
86+
justify-content: center;
8587
}
8688
</style>

src/components/game-events/CurrentEvents.vue

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@
7777

7878
<style scoped>
7979
.content {
80-
text-align: left;
81-
overflow-y: auto;
82-
/*max-height: 15em;*/
80+
text-align: center;
8381
}
8482
8583
.game-event-item {
@@ -90,20 +88,13 @@
9088
border-radius: 5px;
9189
padding: 0.2em;
9290
margin: 0.2em;
91+
text-align: left;
9392
}
9493
9594
.details-row {
9695
margin-bottom: 0;
9796
}
9897
99-
.buttons {
100-
position: absolute;
101-
right: 0;
102-
bottom: 0;
103-
margin: 0.0em;
104-
display: flex;
105-
}
106-
10798
.btn-accept {
10899
margin: 0.1em;
109100
}

src/components/game-events/EventProposals.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979

8080
<style scoped>
8181
82+
.content {
83+
text-align: center;
84+
}
85+
8286
.proposal-item {
8387
position: relative;
8488
min-height: 2em;
@@ -87,6 +91,7 @@
8791
border-radius: 5px;
8892
padding: 0.2em;
8993
margin: 0.2em;
94+
text-align: left;
9095
}
9196
9297
.btn-accept {

src/components/game-events/GameEventsView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
text-align: left;
3030
overflow-y: auto;
3131
max-height: 85vh;
32+
min-width: 20em;
3233
}
3334
3435
</style>

0 commit comments

Comments
 (0)