mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #21281 from overleaf/ii-bs5-toolbar-items-border-radius
[web] BS5 toolbar buttons border radius GitOrigin-RevId: b07a7bb16ab7a933dfa714a128f88f2ee006cf04
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { StateEffect, StateField } from '@codemirror/state'
|
||||
import { EditorView, showPanel } from '@codemirror/view'
|
||||
import { isBootstrap5 } from '@/features/utils/bootstrap-5'
|
||||
|
||||
const toggleToolbarEffect = StateEffect.define<boolean>()
|
||||
const toolbarState = StateField.define<boolean>({
|
||||
@@ -116,7 +117,7 @@ const toolbarTheme = EditorView.theme({
|
||||
margin: '0 1px',
|
||||
backgroundColor: 'transparent',
|
||||
border: 'none',
|
||||
borderRadius: '1px',
|
||||
borderRadius: isBootstrap5() ? 'var(--border-radius-base)' : '1px',
|
||||
lineHeight: '1',
|
||||
width: '24px',
|
||||
height: '24px',
|
||||
@@ -176,7 +177,7 @@ const toolbarTheme = EditorView.theme({
|
||||
border: 'none',
|
||||
whiteSpace: 'nowrap',
|
||||
color: 'inherit',
|
||||
borderRadius: '0',
|
||||
borderRadius: isBootstrap5() ? 'var(--border-radius-base)' : '0',
|
||||
opacity: 0.8,
|
||||
width: '120px',
|
||||
fontSize: '13px',
|
||||
|
||||
Reference in New Issue
Block a user