Skip to content

A platform for community discussion. Free, open, simple.

UX: make tables in blockquotes fixed to prevent overflow (#34061)

chapoi0dca6d3e4dc4
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 5df29347ce0..8ef0bacb5b1 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -1130,6 +1130,11 @@ blockquote .post__contents-cooked-quote {
> *:last-child {
margin-bottom: 0 !important;
}
+
+ table {
+ table-layout: fixed; // prevents table from expanding past the post body width
+ width: 100%;
+ }
}
.gap {