Fix: increase left gutter spacing on mobile edit mode (#2720)
* fix: adds space to the left gutter in edit mode so heading annotations have room on mobile
This commit is contained in:
		@ -464,6 +464,7 @@ class DocumentScene extends React.Component<Props> {
 | 
			
		||||
            <MaxWidth
 | 
			
		||||
              archived={document.isArchived}
 | 
			
		||||
              showContents={showContents}
 | 
			
		||||
              isEditing={!readOnly}
 | 
			
		||||
              column
 | 
			
		||||
              auto
 | 
			
		||||
            >
 | 
			
		||||
@ -600,7 +601,11 @@ const ReferencesWrapper = styled("div")`
 | 
			
		||||
const MaxWidth = styled(Flex)`
 | 
			
		||||
  ${(props) =>
 | 
			
		||||
    props.archived && `* { color: ${props.theme.textSecondary} !important; } `};
 | 
			
		||||
  padding: 0 12px;
 | 
			
		||||
 | 
			
		||||
  // Adds space to the left gutter to make room for heading annotations on mobile
 | 
			
		||||
  padding: ${(props) => (props.isEditing ? "0 12px 0 32px" : "0 12px")};
 | 
			
		||||
  transition: padding 100ms;
 | 
			
		||||
 | 
			
		||||
  max-width: 100vw;
 | 
			
		||||
  width: 100%;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user