Skip to content

Commit

Permalink
feat(ui): polish
Browse files Browse the repository at this point in the history
  • Loading branch information
mstephen19 committed Nov 27, 2022
1 parent a899d6a commit 50e1ed3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/widget/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Widget = () => {
>
{started && <StopFill color="red" size="medium" />}
{!started && (
<PlayFill color="green" size="medium" />
<PlayFill color={'green'} size="medium" />
)}
</Button>
<Box
Expand Down
2 changes: 1 addition & 1 deletion src/widget/components/Automator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getWaitSecs = () => {
localStorage.getItem(LocalStorageKey.RANDOMIZE) ?? 'false'
) as boolean;

if (randomize) return randomNumber(3, 10);
if (randomize) return randomNumber(3, 8);

const value = localStorage.getItem(LocalStorageKey.WAIT_SECS);

Expand Down
22 changes: 11 additions & 11 deletions src/widget/components/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ const Config = memo(() => {
</Box>
</Box>

<Box direction="column">
<Box direction="row" gap="5px">
<CheckBox
label="Randomize wait-between"
checked={randomize}
onChange={handleRandomizeChange}
/>
<InfoIcon text='Randomize the wait-between seconds to be anywhere between 3 and 8 seconds. When enabled, the provided "Wait-between" value will be ignored.' />
</Box>
</Box>

<Box direction="column">
<Box direction="row" gap="5px">
<label htmlFor="stop-after">Stop after minutes</label>
Expand Down Expand Up @@ -127,17 +138,6 @@ const Config = memo(() => {
</Box>
</Box>

<Box direction="column">
<Box direction="row" gap="5px">
<CheckBox
label="Randomize wait-between"
checked={randomize}
onChange={handleRandomizeChange}
/>
<InfoIcon text='Randomize the wait-between seconds to be anywhere between 3 and 10 seconds. When enabled, the provided "Wait-between" value will be ignored.' />
</Box>
</Box>

<Box direction="column">
<Box direction="row" gap="5px">
<CheckBox
Expand Down
3 changes: 2 additions & 1 deletion src/widget/components/DraggableBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,12 @@ const DraggableBox = ({
minWidth: '300px',
height: 'auto',
maxHeight: '500px',
boxShadow: '0px 0px 4px',
// boxShadow: '0px 0px 4px',
overflow: 'visible',
}}
background="light"
animation="fadeIn"
elevation="xlarge"
>
<Header
className="drag-handle"
Expand Down

0 comments on commit 50e1ed3

Please sign in to comment.