Skip to content

Commit

Permalink
Update image_text block to fix extra pixel in margin for tw-row c…
Browse files Browse the repository at this point in the history
…lasses.
  • Loading branch information
ramram-mf committed Jun 7, 2024
1 parent 9d4bd44 commit 744c4ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load l10n wagtailcore_tags wagtailimages_tags %}

{% block block_content %}
<div class="tw-row tw-my-8">
<div class="tw-row tw-my-8 !tw-mr-[calc(-1rem+1px)]">
{% if value.small %}
<div class="tw-w-full tw-px-8 tw-flex tw-flex-nowrap">
<div class="tw-mr-6 tw-shrink-0 tw-w-24">
Expand Down
9 changes: 0 additions & 9 deletions source/sass/wagtail/blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,3 @@
.share-button-blog-title-container {
margin-bottom: -2em;
}

// Fixes horizontal overflow for Image Text blocks
.tw-container.image_text-block {
.streamfield-content {
.tw-row {
margin-right: calc(-1rem + 1px);
}
}
}

0 comments on commit 744c4ee

Please sign in to comment.