mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Add Draw mode to the symbol palette (#34868)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> GitOrigin-RevId: 4ea4f97023e65fdb8b018f610f77d7dd107c8e76
This commit is contained in:
committed by
Copybot
co-authored by
Claude Opus 4.8
parent
10f10ca95f
commit
98842d4659
@@ -11,6 +11,7 @@ import SymbolPalettePane from '@/features/ide-react/components/editor/symbol-pal
|
||||
import { useEditorPropertiesContext } from '@/features/ide-react/context/editor-properties-context'
|
||||
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
|
||||
import importOverleafModules from '../../../../../macros/import-overleaf-module.macro'
|
||||
import { useFeatureFlag } from '@/shared/context/split-test-context.tsx'
|
||||
|
||||
const [pythonRunnerModule] = importOverleafModules('pythonRunner') as {
|
||||
import: { PythonEditorSplit: FC }
|
||||
@@ -22,6 +23,8 @@ export const Editor = () => {
|
||||
const { selectedEntityCount, openEntity } = useFileTreeOpenContext()
|
||||
const { currentDocumentId, currentDocument } = useEditorOpenDocContext()
|
||||
|
||||
const drawEnabled = useFeatureFlag('symbol-recognition')
|
||||
|
||||
if (!currentDocumentId) {
|
||||
return null
|
||||
}
|
||||
@@ -64,7 +67,7 @@ export const Editor = () => {
|
||||
<Panel
|
||||
id="ide-redesign-panel-symbol-palette"
|
||||
order={2}
|
||||
defaultSize={25}
|
||||
defaultSize={drawEnabled ? 50 : 25}
|
||||
minSize={10}
|
||||
maxSize={50}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user