mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
* Remove skipLoadingStyleSheet * Remove unused bootstrap-5 assignment from the Account settings page since it's archived * Remove bsVersionIcon * Remove bsVersion, bootstrapVersion and isBootstrap5 from elements on the IDE page * Remove BS3Dropdown from the context menu * Cleanup Bootstrap 3 related comment and type GitOrigin-RevId: a67244eb78943ee84cc5f89bae164c0361e8fc13
This commit is contained in:
@@ -303,7 +303,7 @@ const searchFormTheme = EditorView.theme({
|
||||
padding: 'var(--spacing-03) var(--spacing-05)',
|
||||
},
|
||||
},
|
||||
'&.bootstrap-5 .ol-cm-search-form': {
|
||||
'&.ol-cm-search-form': {
|
||||
'--ol-cm-search-form-gap': 'var(--spacing-05)',
|
||||
'--ol-cm-search-form-button-margin': 'var(--spacing-02)',
|
||||
'--input-border': 'var(--border-primary)',
|
||||
|
||||
@@ -19,7 +19,6 @@ type Options = {
|
||||
fontFamily: FontFamily
|
||||
lineHeight: LineHeight
|
||||
overallTheme: OverallTheme
|
||||
bootstrapVersion: 3 | 5
|
||||
}
|
||||
|
||||
export const theme = (options: Options) => [
|
||||
@@ -60,7 +59,6 @@ const createThemeFromOptions = ({
|
||||
fontFamily = 'monaco',
|
||||
lineHeight = 'normal',
|
||||
overallTheme = '',
|
||||
bootstrapVersion = 3,
|
||||
}: Options) => {
|
||||
// Theme styles that depend on settings.
|
||||
const styles = userStyles({ fontSize, fontFamily, lineHeight })
|
||||
@@ -68,8 +66,7 @@ const createThemeFromOptions = ({
|
||||
return [
|
||||
EditorView.editorAttributes.of({
|
||||
class: classNames(
|
||||
overallTheme === '' ? 'overall-theme-dark' : 'overall-theme-light',
|
||||
'bootstrap-' + bootstrapVersion
|
||||
overallTheme === '' ? 'overall-theme-dark' : 'overall-theme-light'
|
||||
),
|
||||
style: Object.entries({
|
||||
'--font-size': styles.fontSize,
|
||||
|
||||
@@ -56,7 +56,6 @@ import { useRangesContext } from '@/features/review-panel-new/context/ranges-con
|
||||
import { updateRanges } from '@/features/source-editor/extensions/ranges'
|
||||
import { useThreadsContext } from '@/features/review-panel-new/context/threads-context'
|
||||
import { useHunspell } from '@/features/source-editor/hooks/use-hunspell'
|
||||
import { isBootstrap5 } from '@/features/utils/bootstrap-5'
|
||||
import { Permissions } from '@/features/ide-react/types/permissions'
|
||||
import { lineHeights } from '@/shared/utils/styles'
|
||||
import { useEditorManagerContext } from '@/features/ide-react/context/editor-manager-context'
|
||||
@@ -130,7 +129,6 @@ function useCodeMirrorScope(view: EditorView) {
|
||||
lineHeight,
|
||||
overallTheme,
|
||||
editorTheme,
|
||||
bootstrapVersion: 3 as 3 | 5,
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
@@ -140,7 +138,6 @@ function useCodeMirrorScope(view: EditorView) {
|
||||
lineHeight,
|
||||
overallTheme,
|
||||
editorTheme,
|
||||
bootstrapVersion: isBootstrap5() ? 5 : 3,
|
||||
}
|
||||
|
||||
view.dispatch(
|
||||
@@ -149,7 +146,6 @@ function useCodeMirrorScope(view: EditorView) {
|
||||
fontSize,
|
||||
lineHeight,
|
||||
overallTheme,
|
||||
bootstrapVersion: themeRef.current.bootstrapVersion,
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user