Skip to content

Commit

Permalink
Merge pull request #1339 from hlxsites/colimgresize-fix
Browse files Browse the repository at this point in the history
column img resize issue fixed and reflecting only for wsaw page
  • Loading branch information
davenichols-DHLS authored Dec 20, 2024
2 parents 5cd0ca4 + 82fc76d commit 2bd9e21
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
height: 100%;
}

.columns-wrapper :is(.\!w-1\/2) {
width: 50% !important;
.columns-wrapper :is(.w-1\/2) {
width: 50%;
}

.columns-wrapper :is(.w-12) {
Expand Down
2 changes: 1 addition & 1 deletion blocks/columns/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default function decorate(block) {
const seventythirtyEl = picWrapper.parentElement
?.parentElement?.parentElement?.parentElement;
if (seventythirtyEl.querySelector('img')) {
pic.querySelector('img').classList.add('block', '!w-1/2');
pic.querySelector('img').classList.add('block', 'w-1/2');
} else {
pic.querySelector('img').classList.add('block');
}
Expand Down
4 changes: 4 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,10 @@ main .section .talk-to-an-expert-form-wrapper .talk-to-an-expert-form > div ul {
}
}

.seventythirty .columns-2-cols .container .columns-img-col picture img {
width: 50% !important;
}

.pointer-events-none {
pointer-events: none;
}
Expand Down
4 changes: 4 additions & 0 deletions styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@
@apply lg:pt-8;
}

.seventythirty .columns-2-cols .container .columns-img-col picture img {
@apply !w-1/2;
}

}

@layer utilities {
Expand Down

0 comments on commit 2bd9e21

Please sign in to comment.