Skip to content

Commit

Permalink
feat: improved layout of emergency list
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Bollen authored and Casper Bollen committed May 23, 2024
1 parent 57c3cbe commit 94882e2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Client/Components/ResponsiveTable.fs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ module ResponsiveTable =
else
let b, s =
match cell.value with
| _ when cell.value.Contains("**") -> "", cell.value.Replace("**", "")
| _ when cell.value.Contains("*") -> "", cell.value.Replace("*", "")
| _ when cell.value.Contains("**") -> Mui.Colors.Blue.``900``, cell.value.Replace("**", "")
| _ when cell.value.Contains("*") -> Mui.Colors.Blue.``900``, cell.value.Replace("*", "")
| _ -> Mui.Colors.Grey.``700``, cell.value

let h =
Expand All @@ -56,7 +56,7 @@ module ResponsiveTable =
<React.Fragment>
<Stack direction="row" spacing={3} >
<Typography minHeight={40} minWidth={80} variant="body2" color={Mui.Colors.Blue.``900``} >
<Typography minHeight={40} minWidth={80} variant="body2" color={Mui.Colors.Grey.``900``} >
{h}
</Typography>
<Typography minHeight={40} color={b} variant="body2" >
Expand Down Expand Up @@ -85,8 +85,7 @@ module ResponsiveTable =
<CardActions>
{
match row.actions with
| None -> JSX.jsx "<></>" |> toReact
| Some acts -> acts
| _ -> JSX.jsx "<></>" |> toReact
}
</CardActions>
</Card>
Expand Down

0 comments on commit 94882e2

Please sign in to comment.