Skip to content

Commit

Permalink
Site Breadcrumbs: Fix small screen overflow gradient on RTL sites
Browse files Browse the repository at this point in the history
Fixes #602
  • Loading branch information
ryelle committed Apr 30, 2024
1 parent f88c67c commit be8c24c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mu-plugins/blocks/site-breadcrumbs/postcss/style.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
max-width: 100%;
mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent);

[dir="rtl"] & {
mask-image: linear-gradient(to left, #000 calc(100% - 60px), transparent);
}

& .wporg-site-breadcrumbs__wrapper {
overflow-x: auto;
text-overflow: clip;
Expand Down

0 comments on commit be8c24c

Please sign in to comment.