overleaf/services/web/app/views/project/editor/toolbar.pug
Alf Eaton e54a1d1a43 [cm6] Remove Galileo code (#14336)
GitOrigin-RevId: 878faff8eea90f508aa94e4471990c31d5d3f0e5
2023-08-18 12:11:28 +00:00

43 lines
1.3 KiB
Text

.toolbar.toolbar-editor(ng-controller="EditorToolbarController")
.toggle-wrapper
editor-switch
div(
formatting-buttons
ng-cloak
ng-if="!editor.showVisual"
buttons="editorButtons"
opening="editor.opening"
resize-on="layout:main:resize,layout:pdf:resize,layout:review:resize,review-panel:toggle"
is-fullscreen-editor="ui.view == 'editor' && ui.pdfLayout == 'flat'"
class="formatting-buttons"
)
div(
formatting-buttons
ng-cloak
ng-if="editor.showVisual"
buttons="[]"
opening="editor.opening"
resize-on="layout:main:resize,layout:pdf:resize,layout:review:resize,review-panel:toggle"
is-fullscreen-editor="ui.view == 'editor' && ui.pdfLayout == 'flat'"
class="formatting-buttons"
)
.toolbar-pdf-right
switch-to-pdf-button()
detacher-synctex-control()
editor-compile-button()
script(type="text/ng-template", id="formattingButtonsTpl")
.formatting-buttons-wrapper
|  
button.btn.formatting-btn.formatting-btn--icon(
ng-repeat="button in shownButtons"
ng-click="button.handleClick()"
ng-class="{ active: button.active }",
aria-label="{{button.title}}"
tooltip="{{button.title}}"
tooltip-placement="bottom"
tooltip-append-to-body="true"
)
i(class="{{button.iconClass}}") {{button.iconText}}