mirror of
https://github.com/outline/outline.git
synced 2026-12-04 02:20:17 +03:00
fix: Vertically center text in large buttons on mobile (#14841)
* fix: Vertically center text in large buttons on mobile * fix: Use mobile touch target height for large buttons
This commit is contained in:
1 parent
0ef271bd9f
commit
ef5e37dc71
1 file changed
+12
-1
@@ -1,12 +1,23 @@
|
||||
import styled from "styled-components";
|
||||
import { breakpoint } from "@shared/styles/breakpoint";
|
||||
import { MOBILE_TOUCH_TARGET } from "@shared/constants";
|
||||
import Button, { Inner } from "./Button";
|
||||
|
||||
const ButtonLarge = styled(Button)`
|
||||
height: 40px;
|
||||
|
||||
${Inner} {
|
||||
padding: 4px 16px;
|
||||
padding: 0 16px;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
${breakpoint("mobile", "tablet")`
|
||||
height: ${MOBILE_TOUCH_TARGET}px;
|
||||
|
||||
${Inner} {
|
||||
min-height: ${MOBILE_TOUCH_TARGET}px;
|
||||
}
|
||||
`};
|
||||
`;
|
||||
|
||||
export default ButtonLarge;
|
||||
Reference in new issue
Block a user