TGUI changes

This commit is contained in:
Raeschen
2023-07-18 08:15:10 +02:00
parent b706cd1565
commit 4e56571554
4 changed files with 10 additions and 6 deletions

View File

@@ -1158,6 +1158,8 @@ const WeatherTab = (props, context) => {
const { aircontents, weather } = data;
let deg = '\u00B0';
return (
<Section title="Weather">
<Section title="Current Conditions">
@@ -1195,8 +1197,8 @@ const WeatherTab = (props, context) => {
{toTitleCase(wr.Weather)}
</LabeledList.Item>
<LabeledList.Item label="Temperature">
Current: {wr.Temperature.toFixed()}&deg;C | High:{' '}
{wr.High.toFixed()}&deg;C | Low: {wr.Low.toFixed()}&deg;C
Current: {wr.Temperature.toFixed()} {deg}C | High:{' '}
{wr.High.toFixed()} {deg}C | Low: {wr.Low.toFixed()} {deg}C
</LabeledList.Item>
<LabeledList.Item label="Wind Direction">
{wr.WindDir}

View File

@@ -64,7 +64,7 @@ export const pda_medical = (props, context) => {
{medical.cdi_d}
</LabeledList.Item>
<LabeledList.Item label="Important Notes" preserveWhitespace>
{medical.notes}
<Box preserveWhitespace>{medical.notes}</Box>
</LabeledList.Item>
</LabeledList>
)) || <Box color="bad">Medical record lost!</Box>}

View File

@@ -51,8 +51,10 @@ export const pda_security = (props, context) => {
<LabeledList.Item label="Details">
{security.ma_crim_d}
</LabeledList.Item>
<LabeledList.Item label="Important Notes:" preserveWhitespace>
<LabeledList.Item label="Important Notes:">
<Box preserveWhitespace>
{security.notes || 'No data found.'}
</Box>
</LabeledList.Item>
</LabeledList>
)) || <Box color="bad">Security record lost!</Box>}

File diff suppressed because one or more lines are too long