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

View File

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

View File

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

File diff suppressed because one or more lines are too long