File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,15 @@ export function DocumentPage({ resource }: ResourcePageProps): JSX.Element {
4848 } , [ canWrite ] ) ;
4949
5050 return (
51- < DocumentWrapper about = { resource . getSubject ( ) } >
52- { editMode ? (
53- < DocumentPageEdit resource = { resource } setEditMode = { setEditMode } />
54- ) : (
55- < DocumentPageShow resource = { resource } setEditMode = { setEditMode } />
56- ) }
57- </ DocumentWrapper >
51+ < FullPageWrapper >
52+ < DocumentContainer about = { resource . getSubject ( ) } >
53+ { editMode ? (
54+ < DocumentPageEdit resource = { resource } setEditMode = { setEditMode } />
55+ ) : (
56+ < DocumentPageShow resource = { resource } setEditMode = { setEditMode } />
57+ ) }
58+ </ DocumentContainer >
59+ </ FullPageWrapper >
5860 ) ;
5961}
6062
@@ -405,10 +407,7 @@ function SortableElement(props: SortableElementProps) {
405407 ) ;
406408}
407409
408- const DocumentWrapper = styled . div `
409- background-color: ${ p => p . theme . colors . bg } ;
410- border-left: solid 1px ${ p => p . theme . colors . bg2 } ;
411- border-right: solid 1px ${ p => p . theme . colors . bg2 } ;
410+ const DocumentContainer = styled . div `
412411 max-width: ${ p => p . theme . containerWidth } rem;
413412 display: flex;
414413 flex: 1;
@@ -447,6 +446,10 @@ interface GripItemProps {
447446 active : boolean ;
448447}
449448
449+ const FullPageWrapper = styled . div `
450+ background-color: ${ p => p . theme . colors . bg } ;
451+ ` ;
452+
450453const SortHandleStyled = styled . div < GripItemProps > `
451454 width: 1rem;
452455 flex: 1;
You can’t perform that action at this time.
0 commit comments