Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lb_plus
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
lb_plus
Commits
16f55ec6
Commit
16f55ec6
authored
2 years ago
by
Francesco Pesenti
Browse files
Options
Downloads
Patches
Plain Diff
Fix the Layout Builder built-in block move
parent
eb6b8a25
No related branches found
No related tags found
1 merge request
!15
Fix the Layout Builder built-in block move
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/lb-plus.css
+6
-0
6 additions, 0 deletions
css/lb-plus.css
js/lb-plus.js
+4
-0
4 additions, 0 deletions
js/lb-plus.js
with
10 additions
and
0 deletions
css/lb-plus.css
+
6
−
0
View file @
16f55ec6
...
...
@@ -135,6 +135,12 @@
display
:
block
;
}
.layout-builder__region
{
outline-offset
:
-1px
;
padding
:
1px
;
overflow
:
hidden
;
}
.layout-builder__region.droppable
{
outline
:
3px
solid
#4D7C0F
;
}
...
...
This diff is collapsed.
Click to expand it.
js/lb-plus.js
+
4
−
0
View file @
16f55ec6
...
...
@@ -83,6 +83,10 @@ NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.
document
.
addEventListener
(
'
drop
'
,
(
event
)
=>
{
event
.
preventDefault
();
if
(
!
dragged
.
classList
.
contains
(
'
lb-plus__draggable
'
))
{
return
;
}
const
lbregion
=
event
.
target
.
classList
.
contains
(
'
layout-builder__region
'
)
?
event
.
target
:
event
.
target
.
closest
(
'
.layout-builder__region
'
);
if
(
lbregion
&&
dragged
)
{
lbregion
.
classList
.
remove
(
'
lb_plus__not-allowed
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment