From 9d791009740b85d14a6615e96e19c5d83612cead Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 9 Mar 2018 11:29:10 -0600 Subject: Fix markdown table showing an extra fake column Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/44024 --- app/assets/stylesheets/framework/mixins.scss | 10 +++++++++- changelogs/unreleased/44024-fix-table-extra-column-v2.yml | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/44024-fix-table-extra-column-v2.yml diff --git a/app/assets/stylesheets/framework/mixins.scss b/app/assets/stylesheets/framework/mixins.scss index ddd9dbb2be4..4701c333794 100644 --- a/app/assets/stylesheets/framework/mixins.scss +++ b/app/assets/stylesheets/framework/mixins.scss @@ -17,8 +17,16 @@ */ @mixin markdown-table { width: auto; - display: block; + display: inline-block; overflow-x: auto; + border-left: 0; + border-right: 0; + border-bottom: 0; + + @supports (width: fit-content) { + display: block; + width: fit-content; + } } /* diff --git a/changelogs/unreleased/44024-fix-table-extra-column-v2.yml b/changelogs/unreleased/44024-fix-table-extra-column-v2.yml new file mode 100644 index 00000000000..561587b618a --- /dev/null +++ b/changelogs/unreleased/44024-fix-table-extra-column-v2.yml @@ -0,0 +1,5 @@ +--- +title: Fix markdown table showing extra column +merge_request: 17670 +author: +type: fixed -- cgit v1.2.3