aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-06-28 10:34:28 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-06-28 10:34:28 -0400
commit7567210b6e0dce1e5bc79255dc2dd4debe55ed82 (patch)
treefc8b56dacd45118a41999f29ea7655068e2abb06 /src
parentb0fa926fdb99e9baae9a76317ef58ba9e8e52886 (diff)
DocumentDecorations layout checkbox only in delevolper mode
Diffstat (limited to 'src')
-rw-r--r--src/client/views/DocumentDecorations.scss2
-rw-r--r--src/client/views/DocumentDecorations.tsx12
2 files changed, 8 insertions, 6 deletions
diff --git a/src/client/views/DocumentDecorations.scss b/src/client/views/DocumentDecorations.scss
index 4f23681ac..ca3610cc0 100644
--- a/src/client/views/DocumentDecorations.scss
+++ b/src/client/views/DocumentDecorations.scss
@@ -243,7 +243,7 @@ $resizeHandler: 8px;
& .checkbox-text{
display: inline;
position: relative;
- top: 2;
+ top: 1.5;
font-size: 8px;
}
}
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 4da6bd697..d306d3e45 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -831,12 +831,14 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P
&nbsp;
{shareSymbolIcon + ' ' + shareMode}
&nbsp;
- <div className='checkbox'>
- <div className='checkbox-box'>
- <input type="checkbox" checked={this.showLayoutAcl} onChange={action(() => (this.showLayoutAcl = !this.showLayoutAcl))} />
+ {!Doc.noviceMode ?
+ <div className='checkbox'>
+ <div className='checkbox-box'>
+ <input type="checkbox" checked={this.showLayoutAcl} onChange={action(() => (this.showLayoutAcl = !this.showLayoutAcl))} />
+ </div>
+ <div className='checkbox-text'> Layout </div>
</div>
- <div className='checkbox-text'> Layout </div>
- </div>
+ : null }
&nbsp;
</div>
</div>