fix: make 'now' button consistent (#5716)
This commit is contained in:
parent
0b4022ce12
commit
97de9da948
@ -41,14 +41,8 @@ const ExpandButton = styled.button`
|
||||
`;
|
||||
|
||||
const AddButton = styled.button`
|
||||
${buttons.button};
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 2px 12px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
border-radius: 3px;
|
||||
${buttons.button}
|
||||
${buttons.widget}
|
||||
|
||||
${Icon} {
|
||||
margin-left: 6px;
|
||||
|
@ -191,6 +191,15 @@ const buttons = {
|
||||
background-color: ${colorsRaw.gray};
|
||||
color: ${colorsRaw.white};
|
||||
`,
|
||||
widget: css`
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 2px 12px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
border-radius: 3px;
|
||||
`,
|
||||
medium: css`
|
||||
height: 27px;
|
||||
line-height: 27px;
|
||||
|
@ -21,9 +21,7 @@ function NowButton({ t, handleChange }) {
|
||||
<button
|
||||
css={css`
|
||||
${buttons.button}
|
||||
${buttons.default}
|
||||
${buttons.lightBlue}
|
||||
${buttons.small}
|
||||
${buttons.widget}
|
||||
`}
|
||||
onClick={() => {
|
||||
handleChange(moment());
|
||||
|
Loading…
x
Reference in New Issue
Block a user