Skip to content

Commit

Permalink
fix: table overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Jul 8, 2024
1 parent b16a625 commit 5549ff7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/.vitepress/theme/styles/custom.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
@import url('../../../wiki/.vitepress/theme/styles/custom.css');

.vp-doc table {
.el-descriptions {
display: block;
overflow-x: scroll;
}

.el-descriptions table {
display: table;
}

1 comment on commit 5549ff7

@northword
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jiaojiaodubai 原来的会导致移动端表格横向溢出页面。

.el-descriptions {
  display: block;
  overflow-x: auto;
}

.el-descriptions table {
  display: table;
}

Please sign in to comment.