Skip to content

Commit fe54cf6

Browse files
committed
[FIX] website_blog: fix blog page breadcrumb with long text
Steps to reproduce: - Go to the "/blog/astronomy-2/what-if-they-let-you-run-the-hubble-5" page. - Click on the "Mobile Preview" button. - Bug: The breadcrumb is broken. In stable versions, we fixed this in the least intrusive way possible to avoid making significant layout changes to existing databases. In master version, in mobile view, we replaced the breadcrumb with a "< All Blogs" button to return to the blogs list, similar to what is done in "website_sale" and "website_event". opw-4457408 closes odoo#193508 Signed-off-by: Serge Bayet (seba) <[email protected]>
1 parent 372f5d5 commit fe54cf6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

addons/website_blog/static/src/scss/website_blog.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,22 @@ $o-wblog-loader-size: 50px;
137137
}
138138
}
139139

140+
#o_wblog_post_content, .blog_header {
141+
> nav.breadcrumb {
142+
.breadcrumb-item:not(.active) {
143+
flex-shrink: 0;
144+
}
145+
@include media-breakpoint-down(md) {
146+
flex-wrap: wrap !important;
147+
148+
.breadcrumb-item {
149+
flex-shrink: 1 !important;
150+
@include text-truncate();
151+
}
152+
}
153+
}
154+
}
155+
140156
#o_wblog_post_comments {
141157
.o_portal_chatter > hr {
142158
display: none;

0 commit comments

Comments
 (0)