Cleanup table rendering

fixes #1406
This commit is contained in:
Nicolas Werner 2023-03-09 21:08:18 +01:00
parent b0e4cce065
commit d0d33660ba
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -26,12 +26,12 @@ MatrixText {
border-width: 1px; border-width: 1px;
border-collapse: collapse; border-collapse: collapse;
border-style: solid; border-style: solid;
border-color: " + Nheko.colors.text + ";
background-color: " + Nheko.colors.alternateBase + ";
} }
table th, table th,
table td { table td {
bgcolor: " + Nheko.colors.alternateBase + "; padding: " + Math.ceil(fontMetrics.lineSpacing/2) + "px;
border-collapse: collapse;
border: 1px solid " + Nheko.colors.text + ";
} }
blockquote { margin-left: 1em; } blockquote { margin-left: 1em; }
" + (!Settings.mobileMode ? "span[data-mx-spoiler] { " + (!Settings.mobileMode ? "span[data-mx-spoiler] {