mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
17452b51d7
* [cm6] toolbar for source mode * top:0 for new toolbar * empty div for extensions * fix legacy css top pos * show source toolbar split test * prettier * show beta icon in source editor * dropdown toolbar wip * fix wrong conflict resolve * math dropdown, chrome extension fixes * math dropdown cleanup * sort en.json * fix sort en.json * using isVisual * getMeta in component, pug update * using flex grow * toolbar beta badge * remove extra whitespace * has-legacy-toolbar class * Increase container size * fix tests * prettier * styling fixes, using SplitTestBadge * only show source toolbar if flag is set * fix typo --------- Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> GitOrigin-RevId: 34b01a9421f4a0d6defc40925c5092901575946e
66 lines
2.5 KiB
Text
66 lines
2.5 KiB
Text
.ui-layout-center(
|
|
ng-controller="ReviewPanelController",
|
|
ng-class="{\
|
|
'rp-unsupported': editor.showRichText,\
|
|
'rp-state-current-file': (reviewPanel.subView === SubViews.CUR_FILE),\
|
|
'rp-state-current-file-expanded': (reviewPanel.subView === SubViews.CUR_FILE && ui.reviewPanelOpen),\
|
|
'rp-state-current-file-mini': (reviewPanel.subView === SubViews.CUR_FILE && !ui.reviewPanelOpen),\
|
|
'rp-state-overview': (reviewPanel.subView === SubViews.OVERVIEW),\
|
|
'rp-size-mini': ui.miniReviewPanelVisible,\
|
|
'rp-size-expanded': ui.reviewPanelOpen,\
|
|
'rp-layout-left': reviewPanel.layoutToLeft,\
|
|
'rp-loading-threads': loadingThreads,\
|
|
}"
|
|
)
|
|
|
|
.multi-selection-ongoing(
|
|
ng-show="editor.multiSelectedCount > 0"
|
|
)
|
|
.multi-selection-message
|
|
h4 {{ editor.multiSelectedCount }} #{translate('files_selected')}
|
|
|
|
include ./file-view
|
|
|
|
.editor-container.full-size(
|
|
class={"has-source-toolbar" : showSourceToolbar},
|
|
ng-show="ui.view == 'editor' && editor.multiSelectedCount === 0"
|
|
vertical-resizable-panes="south-pane-resizer"
|
|
vertical-resizable-panes-hidden-externally-on="south-pane-toggled"
|
|
vertical-resizable-panes-hidden-initially="true"
|
|
vertical-resizable-panes-default-size="250"
|
|
vertical-resizable-panes-min-size="250"
|
|
vertical-resizable-panes-max-size="336"
|
|
vertical-resizable-panes-resize-on="layout:flat-screen:toggle,south-pane-toggled"
|
|
)
|
|
.div(vertical-resizable-top)
|
|
|
|
.loading-panel(
|
|
ng-show="(!editor.sharejs_doc || editor.opening) && !editor.error_state",
|
|
style=showRichText ? "top: 32px" : "",
|
|
)
|
|
span(ng-show="editor.open_doc_id")
|
|
i.fa.fa-spin.fa-refresh
|
|
| #{translate("loading")}…
|
|
span(ng-show="!editor.open_doc_id")
|
|
i.fa.fa-arrow-left
|
|
| #{translate("open_a_file_on_the_left")}
|
|
|
|
if moduleIncludesAvailable('editor:main')
|
|
!= moduleIncludes('editor:main', locals)
|
|
else
|
|
.toolbar.toolbar-editor
|
|
|
|
div(ng-if="editor.newSourceEditor")
|
|
include ../../source-editor/source-editor
|
|
div(ng-if="!editor.newSourceEditor")
|
|
include ./source-editor
|
|
div(ng-if="!editor.newSourceEditor || !reviewPanel.isReact")
|
|
if !isRestrictedTokenMember
|
|
include ./review-panel
|
|
|
|
if moduleIncludesAvailable('editor:symbol-palette') || moduleIncludesAvailable('editor:galileo')
|
|
.div(vertical-resizable-bottom)
|
|
if moduleIncludesAvailable('editor:symbol-palette')
|
|
!= moduleIncludes('editor:symbol-palette', locals)
|
|
if moduleIncludesAvailable('editor:galileo')
|
|
!= moduleIncludes('editor:galileo', locals)
|