Skip to content

Commit

Permalink
#88 ui tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
io53 committed Mar 13, 2024
1 parent bbe7ece commit 8cb61f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/DurationPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function DurationPicker(props) {
<Box width={"4px"} />
)
}
<span style={{ display: "inline-block", marginLeft: 8, marginRight: 10, marginTop: 10, fontFamily: "mulish", fontSize: 14, fontWeight: 600 }}>
<span style={{ display: "inline-block", marginLeft: props.dashboard ? 10 : 14, marginRight: 14, marginTop: 10, fontFamily: "mulish", fontSize: 14, fontWeight: 600 }}>
{custom ? (
<>
{ddmm(custom.from) + " - " + ddmm(custom.to)}
Expand Down
7 changes: 3 additions & 4 deletions src/states/Sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ class Sensor extends Component {
this.export()
}
}} />
<Box display="inline-block" width="12px" />
<DurationPicker value={this.state.from} showMaxHours={this.props.sensor.subscription.maxHistoryDays * 24} onChange={v => this.updateFrom(v)} />
</>
}
Expand Down Expand Up @@ -565,7 +564,7 @@ class Sensor extends Component {
{graphTitle()}
</td>
<td>
<Flex justify="end">
<Flex justify="end" gap={"6px"}>
{graphCtrl()}
</Flex>
</td>
Expand All @@ -576,18 +575,18 @@ class Sensor extends Component {
</ScreenSizeWrapper>
<ScreenSizeWrapper isMobile>
<div style={{ marginTop: 30, marginBottom: -10 }} id="history">
{graphTitle(true)}
<table width="100%">
<tbody>
<tr>
<td>
<Flex justify="center" flexWrap="wrap" gap={1}>
<Flex justify="end" flexWrap="wrap" gap={"6px"}>
{graphCtrl(true)}
</Flex>
</td>
</tr>
</tbody>
</table>
{graphTitle(true)}
</div>
</ScreenSizeWrapper>
</>}
Expand Down

0 comments on commit 8cb61f8

Please sign in to comment.