fix: show hide button position

pull/3056/head
William Grant 1 year ago
parent 18f5df6fd5
commit 814d793e1c

@ -11,6 +11,7 @@ import { SpacerMD } from '../basic/Text';
import { SessionIconButton } from '../icon';
const StyledInputContainer = styled(Flex)<{ error: boolean }>`
position: relative;
width: 280px;
label {
@ -68,7 +69,8 @@ const ErrorItem = (props: { id: string; error: string }) => {
const ShowHideButton = (props: { toggleForceShow: Noop }) => {
const htmlDirection = useHTMLDirection();
const position = htmlDirection === 'ltr' ? { right: '0px' } : { left: '0px' };
const position =
htmlDirection === 'ltr' ? { right: 'var(--margins-md)' } : { left: 'var(--margins-md)' };
return (
<SessionIconButton

Loading…
Cancel
Save