Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lib
react-ag-qeditor
Commits
14cb6b4e
Commit
14cb6b4e
authored
Aug 28, 2026
by
Яков
Browse files
Панель: убран автоматический второй разделитель
parent
1cc9ea41
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/ToolBar.js
View file @
14cb6b4e
...
...
@@ -451,24 +451,17 @@ const ToolBar = ({ editor, toolsLib = [], toolsOptions, onInfo, labels = {} }) =
}
const
isThickSep
=
(
section
)
=>
section
.
type
===
'
g
'
&&
section
.
items
.
length
===
1
&&
section
.
items
[
0
]
===
'
|
'
// Второго вида разделителя больше нет.
//
// Он рисовался автоматически между любыми двумя соседними секциями,
// и в пресете урока их набиралось тринадцать — 221 px волосяных линий
// внутри логически ОДНОЙ группы, из-за которых панель не влезала в ряд.
// Границу теперь ставит только явный «|», а секции внутри группы
// отбиваются зазором 2 px, как в макете.
const
getItems
=
()
=>
{
let
toolItems
=
[];
toolbarItems
.
map
((
section
,
i
)
=>
{
const
prevSection
=
toolbarItems
[
i
-
1
]
const
needThinSep
=
i
>
0
&&
!
isThickSep
(
section
)
&&
prevSection
&&
!
isThickSep
(
prevSection
)
if
(
needThinSep
)
{
toolItems
.
push
(
<
div
key
=
{
`thin-sep-
${
i
}
`
}
className
=
"
atma-editor-toolbar-thin-sep
"
/>
)
}
let
gItems
=
[];
if
(
section
.
type
===
'
g
'
){
section
.
items
.
map
((
gKey
,
idx
)
=>
{
...
...
src/index.scss
View file @
14cb6b4e
...
...
@@ -324,18 +324,6 @@ body{
}
}
// Второго вида разделителя больше нет: два почти одинаковых
// волосяных штриха группировку не показывали, а мешали друг другу.
// Остался один — 1×20 с полями по 8.
&-thin-sep{
width: 1px;
height: 20px;
background-color: #E3E7EC;
margin: 0 8px;
flex-shrink: 0;
align-self: center;
}
&-info{
display: flex;
align-items: center;
...
...
@@ -1741,10 +1729,6 @@ body{
}
}
&-thin-sep{
display: none;
}
&-s{
padding-right: 16px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment