mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 03:06:54 +00:00
[Frontend] Modified .tick-labels in Timelines
open #909 - Changed markup to not use plot .tick-label class; - Changed CSS accordingly; - Fixed alignment (clipped bottom value) by refactoring to use flex-box layout for tick labels;
This commit is contained in:
parent
3727b287a1
commit
a58fe1f81c
@ -158,9 +158,13 @@
|
||||
top: 20px; bottom: 5px;
|
||||
.l-labels-holder {
|
||||
@include absPosDefault();
|
||||
@include justify-content(space-between);
|
||||
left: $m;
|
||||
.tick-label.tick-label-y {
|
||||
text-align: left;
|
||||
.t-resource-graph-tick-label {
|
||||
font-size: 0.9em;
|
||||
&.tick-label-y {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,14 +23,14 @@
|
||||
{{parameters.title}}
|
||||
</div>
|
||||
<div class="l-graph-area">
|
||||
<div class="l-labels-holder">
|
||||
<div class="tick-label tick-label-y tick-label-1" style="top: 0;">
|
||||
<div class="l-labels-holder l-flex-col">
|
||||
<div class="t-resource-graph-tick-label tick-label-y flex-elem">
|
||||
{{parameters.high}}
|
||||
</div>
|
||||
<div class="tick-label tick-label-y" style="top: 50%; margin-top: -0.5em; height: 1em;">
|
||||
<div class="t-resource-graph-tick-label tick-label-y flex-elem">
|
||||
{{parameters.middle}}
|
||||
</div>
|
||||
<div class="tick-label tick-label-y" style="top: auto; bottom: 4px; height: 1em;">
|
||||
<div class="t-resource-graph-tick-label tick-label-y flex-elem">
|
||||
{{parameters.low}}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user