replace U+00BA º (not degrees) with U+00B0 ° (degrees)
U+00BA º MASCULINE ORDINAL INDICATOR vs. U+00B0 ° DEGREE SIGN (°)
This commit is contained in:
parent
11f5898996
commit
b3bb02fede
1 changed files with 7 additions and 7 deletions
|
|
@ -1334,8 +1334,8 @@
|
|||
<label class="block text-sm font-medium text-gray-900">Temperature Format</label>
|
||||
<div class="text-xs text-gray-600 mb-2">Metrics will be shown in the selected format.</div>
|
||||
<select v-model="configTemperatureFormat" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
|
||||
<option value="celsius">Celsius (ºC)</option>
|
||||
<option value="fahrenheit">Fahrenheit (ºF)</option>
|
||||
<option value="celsius">Celsius (°C)</option>
|
||||
<option value="fahrenheit">Fahrenheit (°F)</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
@ -2078,7 +2078,7 @@
|
|||
datasets: [
|
||||
{
|
||||
label: 'Temperature',
|
||||
suffix: 'ºC',
|
||||
suffix: '°C',
|
||||
borderColor: '#3b82f6',
|
||||
backgroundColor: '#3b82f6',
|
||||
pointStyle: false, // no points
|
||||
|
|
@ -2473,11 +2473,11 @@
|
|||
formatTemperature: function(celsius) {
|
||||
switch(this.configTemperatureFormat){
|
||||
case "celsius": {
|
||||
return `${Number(celsius).toFixed(0)}ºC`;
|
||||
return `${Number(celsius).toFixed(0)}°C`;
|
||||
}
|
||||
case "fahrenheit": {
|
||||
const fahrenheit = this.celsiusToFahrenheit(celsius);
|
||||
return `${fahrenheit.toFixed(0)}ºF`;
|
||||
return `${fahrenheit.toFixed(0)}°F`;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -2493,8 +2493,8 @@
|
|||
},
|
||||
getTemperatureUnit: function() {
|
||||
switch(this.configTemperatureFormat){
|
||||
case "celsius": return "ºC";
|
||||
case "fahrenheit": return "ºF";
|
||||
case "celsius": return "°C";
|
||||
case "fahrenheit": return "°F";
|
||||
}
|
||||
},
|
||||
celsiusToFahrenheit: function(celsius) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue