Skip to content

Commit

Permalink
fix(thermals): size columns dynamically, disallow line breaks (#1340)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathis Mensing <github@matmen.dev>
  • Loading branch information
matmen committed Feb 1, 2024
1 parent 532fb5c commit ebe2966
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/components/widgets/thermals/TemperatureTargets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@
<v-simple-table class="temperature-table">
<thead>
<tr>
<th width="1%" />
<th :width="showRateOfChange ? '94%' : '95%'">
<th />
<th width="100%">
{{ $t('app.chart.label.item') }}
</th>
<th width="1%">
<th>
{{ $t('app.chart.label.power') }}
</th>
<th
v-if="showRateOfChange"
width="1%"
>
{{ $t('app.chart.label.rate_of_change') }}
</th>
<th width="1%">
<th>
{{ $t('app.chart.label.current') }}
</th>
<th width="1%" />
<th width="1%">
<th />
<th>
{{ $t('app.chart.label.target') }}
</th>
</tr>
Expand Down Expand Up @@ -61,7 +60,7 @@
</td>
<td
v-if="showRateOfChange"
class="rate-of-change"
class="text-no-wrap"
>
<span
:class="{ 'active': chartSelectedLegends[item.key + 'Power'] }"
Expand Down Expand Up @@ -136,7 +135,7 @@
</td>
<td
v-if="showRateOfChange"
class="rate-of-change"
class="text-no-wrap"
>
<span
:class="{ 'active': chartSelectedLegends[item.key + 'Power'] }"
Expand Down Expand Up @@ -205,7 +204,7 @@
</td>
<td
v-if="showRateOfChange"
class="rate-of-change"
class="text-no-wrap"
>
<span class="legend-item">
{{ getRateOfChange(item) }}<small>&deg;C/s</small>
Expand Down

0 comments on commit ebe2966

Please sign in to comment.