summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2018-03-09 11:29:10 -0600
committerEric Eastwood <contact@ericeastwood.com>2018-03-09 12:41:43 -0600
commit9d791009740b85d14a6615e96e19c5d83612cead (patch)
treedd25e7485ee922ce18ed53058953155028244323
parent7734e85bc6592c5ad3330c611c5f83a051b680b0 (diff)
downloadgitlab-ce-44024-fix-table-extra-column-v2.tar.gz
Fix markdown table showing an extra fake column44024-fix-table-extra-column-v2
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/44024
-rw-r--r--app/assets/stylesheets/framework/mixins.scss10
-rw-r--r--changelogs/unreleased/44024-fix-table-extra-column-v2.yml5
2 files changed, 14 insertions, 1 deletions
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