Skip to content

Commit

Permalink
improv(tables): remove excess padding from Obsidian core
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Sep 9, 2024
1 parent 8c6267f commit a40a316
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/03 images tables embeds.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
/* ───────────────────────────────────────────────── */
/** Tables
──────────────────────────────────────────────────── */
/* most table styling via Obsidian Variables */
/* most table styling done via Obsidian Variables */

/* FIX wrong variable in Obsidian core */
.markdown-rendered th {
line-height: var(--table-line-height);
}

/* FIX excess padding at the top
* (unnecessary due to drag handle already adding space) */
body .markdown-source-view.mod-cm6 .cm-table-widget {
padding-top: 0;
}

/* make lists in tables take up less space */
.markdown-rendered table :is(ul, ol) {
line-height: 1.1;
Expand Down

0 comments on commit a40a316

Please sign in to comment.