Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CERN Components
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Web Team
Drupal
Public Drupal Repositories
Drupal 8
D8 Modules
CERN Components
Commits
7e5b9609
Commit
7e5b9609
authored
4 years ago
by
Konstantinos Platis
Browse files
Options
Downloads
Patches
Plain Diff
Fix Article Boxes not getting selected size of CDS images
parent
df36cb1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
cern_components.info.yml
+1
-1
1 addition, 1 deletion
cern_components.info.yml
patterns/molecules/preview-card/preview-card.html.twig
+1
-2
1 addition, 2 deletions
patterns/molecules/preview-card/preview-card.html.twig
with
7 additions
and
3 deletions
CHANGELOG.md
+
5
−
0
View file @
7e5b9609
...
...
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
,
and this project adheres to
[
Semantic Versioning
](
https://semver.org/spec/v2.0.0.html
)
.
## [2.7.8] - 17/12/2020
-
Fix Article Boxes not getting selected size of CDS images
## [2.7.7] - 16/12/2020
-
Add id attribute in sections that are linked from scrolling menu
...
...
This diff is collapsed.
Click to expand it.
cern_components.info.yml
+
1
−
1
View file @
7e5b9609
...
...
@@ -2,7 +2,7 @@ name: "CERN Components"
type
:
module
description
:
"
Provides
all
the
necessary
modules
regarding
CERN
Web
Components."
core
:
8.x
version
:
2.7.
7
version
:
2.7.
8
package
:
CERN Components
dependencies
:
-
components:components (>=8.x-1.1-alpha1)
...
...
This diff is collapsed.
Click to expand it.
patterns/molecules/preview-card/preview-card.html.twig
+
1
−
2
View file @
7e5b9609
...
...
@@ -23,8 +23,7 @@
{%
else
%}
{%
if
background
|
render
%}
{%
if
'cds-image'
in
background
|
render
|
render
%}
{%
set
cds_id
=
background
|
render
|
get_tag_attribute
(
'figure'
,
'id'
)
%}
{%
set
background_url
=
'//cds.cern.ch/images/'
~
cds_id
~
'/file?size=medium'
%}
{%
set
background_url
=
background
|
render
|
get_tag_attribute
(
'img'
,
'src'
)
%}
{%
else
%}
{%
set
background_url
=
background
|
render
%}
{%
endif
%}
...
...
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