Skip to content

Commit

Permalink
feat: Allow up to 2 images
Browse files Browse the repository at this point in the history
Refs: #UNO-871
  • Loading branch information
attiks committed Jan 14, 2025
1 parent 17a91be commit b9445f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/field.storage.paragraph.field_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ settings:
target_type: media
module: core
locked: false
cardinality: 1
cardinality: 2
translatable: true
indexes: { }
persist_with_no_fields: false
Expand Down
6 changes: 6 additions & 0 deletions html/themes/custom/common_design_claro/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,9 @@ form .entities-list .item-container.rendered-entity .button {
.select-a11y .btn-select-a11y {
height: 34px;
}

.paragraph--type--image .field--name-field-image {
display: grid;
grid-template-columns: minmax(150px, max-content) minmax(150px, max-content);
column-gap: 1rem;
}
6 changes: 6 additions & 0 deletions html/themes/custom/common_design_subtheme/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@
.layout .paragraph--type--node.paragraph--view-mode--teasers .cd-teaser__title {
margin-top: 1rem;
}

.paragraph--type--image .field--name-field-image {
display: grid;
grid-template-columns: minmax(150px, max-content) minmax(150px, max-content);
column-gap: 1rem;
}

0 comments on commit b9445f2

Please sign in to comment.