Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions src/cloud/components/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ import {
} from '../../lib/subscription'
import { nginxSizeLimitInMb } from '../../lib/upload'
import CustomizedMarkdownPreviewer from '../MarkdownView/CustomizedMarkdownPreviewer'
import BottomBarButton from '../BottomBarButton'

type LayoutMode = 'split' | 'preview' | 'editor'

Expand Down Expand Up @@ -1067,20 +1068,6 @@ const Editor = ({
settings['general.showEditorToolbar'] && (
<StyledLayoutDimensions className={editorLayout}>
<ToolbarRow>
<EditorToolButton
tooltip={
scrollSync
? translate(
lngKeys.EditorToolbarTooltipScrollSyncDisable
)
: translate(
lngKeys.EditorToolbarTooltipScrollSyncEnable
)
}
path={scrollSync ? mdiRepeatOff : mdiRepeat}
onClick={toggleScrollSync}
className='scroll-sync'
/>
<EditorToolbar editorRef={editorRef} />
<EditorToolbarUpload
editorRef={editorRef}
Expand Down Expand Up @@ -1153,6 +1140,12 @@ const Editor = ({
cursor={selection.currentCursor}
selections={selection.currentSelections}
/>
<BottomBarButton
className='scroll-sync'
onClick={toggleScrollSync}
>
<Icon path={scrollSync ? mdiRepeat : mdiRepeatOff} />
</BottomBarButton>
<EditorKeyMapSelect />
<EditorThemeSelect />
<EditorIndentationStatus />
Expand Down