Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mercury_editor
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
mercury_editor
Commits
a7c436ca
Commit
a7c436ca
authored
6 months ago
by
Justin Toupin
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3487531
: Icons are duplicated in the component menu
parent
9a7a8996
No related branches found
No related tags found
3 merge requests
!92
#3492298: Entity browsers won't close.
,
!89
#3489988: Update sidebar toggle.
,
!78
Fix template to prevent icons from duplicating
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/layout-paragraphs-builder-component-menu--mercury-editor.html.twig
+7
-1
7 additions, 1 deletion
...ragraphs-builder-component-menu--mercury-editor.html.twig
with
7 additions
and
1 deletion
templates/layout-paragraphs-builder-component-menu--mercury-editor.html.twig
+
7
−
1
View file @
a7c436ca
...
...
@@ -35,7 +35,13 @@
{%
for
type
in
types.content
%}
<div
class=
"lpb-component-list__item type-
{{
type.id
}}
"
>
<a
{{
type.link_attributes.setAttribute
(
'href'
,
type.url
)
}}
>
{%
if
type.image
%}
<img
src=
"
{{
type.image
}}
"
alt=
""
/>
{%
if
type.image
%}
<style>
.lpb-component-list__item.type-
{{
type.id
}}
a
::before
{
background
:
url
(
{{
type.image
}}
);
background-size
:
cover
;
}
</style>
{%
endif
%}
{{
type.label
}}
</a>
</div>
...
...
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