From b0fa926fdb99e9baae9a76317ef58ba9e8e52886 Mon Sep 17 00:00:00 2001 From: srichman333 Date: Tue, 27 Jun 2023 17:54:08 -0400 Subject: DocumentDecorations UI fix for layout checkbox and when theres no title --- src/client/views/DocumentDecorations.scss | 21 +++++++++++---------- src/client/views/DocumentDecorations.tsx | 10 +++++----- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.scss b/src/client/views/DocumentDecorations.scss index d1b6c5772..4f23681ac 100644 --- a/src/client/views/DocumentDecorations.scss +++ b/src/client/views/DocumentDecorations.scss @@ -221,29 +221,30 @@ $resizeHandler: 8px; pointer-events: auto; min-width: fit-content; text-align: center; - width: 125px; display: flex; height: 21px; opacity: 0.3; &:hover { opacity: 1; } + .checkbox{ - position: fixed; display: inline; - margin-top: -2px; - margin-left: -5px; - font-size: 7px; .checkbox-box{ - transform: scale(.7); + display: inline; + position: relative; + top: -2.5; + left: 35; + zoom: .7; } - .checkbox-text{ - font-size: 7px; - margin-top: 10px; - margin-left: -20px; + & .checkbox-text{ + display: inline; + position: relative; + top: 2; + font-size: 8px; } } diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 3b51f8c61..4da6bd697 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -829,8 +829,8 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P
  - {shareSymbolIcon + ' ' + shareMode} -           + {shareSymbolIcon + ' ' + shareMode} +  
(this.showLayoutAcl = !this.showLayoutAcl))} /> @@ -843,7 +843,7 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P ) : (
); - + const titleArea = this._editingTitle ? ( ) : (
{e.stopPropagation}}> - {`${hideTitle ? '' : this.selectionTitle}`} + { hideTitle ? null : {this.selectionTitle}} {sharingMenu} {!useLock ? null : ( toggle ability to interact with document
} placement="top"> @@ -903,7 +903,7 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P
{hideDeleteButton ? null : topBtn('close', 'times', undefined, e => this.onCloseClick(true), 'Close')} {hideResizers || hideDeleteButton ? null : topBtn('minimize', 'window-maximize', undefined, e => this.onCloseClick(undefined), 'Minimize')} - {hideTitle ? null : titleArea} + {titleArea} {hideOpenButton ?
: topBtn('open', 'external-link-alt', this.onMaximizeDown, undefined, 'Open in Lightbox (ctrl: as alias, shift: in new collection)')}
{hideResizers ? null : ( -- cgit v1.2.3-70-g09d2