Skip to content

Commit

Permalink
Fix table handles
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed May 23, 2024
1 parent 2785e55 commit 6adf751
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
16 changes: 8 additions & 8 deletions Minimal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1729,22 +1729,22 @@ body {
.markdown-source-view.mod-cm6 td:first-child, .markdown-source-view.mod-cm6 th:first-child,
.markdown-preview-view td:first-child,
.markdown-preview-view th:first-child {
padding-left: var(--table-edge-cell-padding-first);
padding-inline-start: var(--table-edge-cell-padding-first);
}
.markdown-source-view.mod-cm6 td:first-child .table-cell-wrapper, .markdown-source-view.mod-cm6 th:first-child .table-cell-wrapper,
.markdown-preview-view td:first-child .table-cell-wrapper,
.markdown-preview-view th:first-child .table-cell-wrapper {
padding-left: 0;
padding-inline-start: 0;
}
.markdown-source-view.mod-cm6 td:last-child, .markdown-source-view.mod-cm6 th:last-child,
.markdown-preview-view td:last-child,
.markdown-preview-view th:last-child {
padding-right: var(--table-edge-cell-padding-last);
padding-inline-end: var(--table-edge-cell-padding-last);
}
.markdown-source-view.mod-cm6 td:last-child .table-cell-wrapper, .markdown-source-view.mod-cm6 th:last-child .table-cell-wrapper,
.markdown-preview-view td:last-child .table-cell-wrapper,
.markdown-preview-view th:last-child .table-cell-wrapper {
padding-right: 0;
padding-inline-end: 0;
}

.cm-embed-block.cm-table-widget.markdown-rendered {
Expand All @@ -1753,10 +1753,10 @@ body {
}

.markdown-source-view.mod-cm6 .cm-table-widget .table-col-drag-handle {
top: 0;
left: 0 !important;
}
.markdown-source-view.mod-cm6 .cm-table-widget .table-row-drag-handle {
left: 0;
top: 0 !important;
}

/* Override Sortable plugin */
Expand All @@ -1768,12 +1768,12 @@ body {
.markdown-preview-view th:first-child,
.table-view-table > thead > tr > th:first-child,
.markdown-source-view.mod-cm6 .dataview.table-view-table thead.table-view-thead tr th:first-child {
padding-left: var(--table-edge-cell-padding-first);
padding-inline-start: var(--table-edge-cell-padding-first);
}
.markdown-preview-view th:last-child,
.table-view-table > thead > tr > th:last-child,
.markdown-source-view.mod-cm6 .dataview.table-view-table thead.table-view-thead tr th:last-child {
padding-right: var(--table-edge-cell-padding-last);
padding-inline-end: var(--table-edge-cell-padding-last);
}

/* Live Preview Tables */
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Minimal",
"version": "7.6.7",
"minAppVersion": "1.6.0",
"version": "7.6.8",
"minAppVersion": "1.6.1",
"author": "@kepano",
"authorUrl": "https://twitter.com/kepano",
"fundingUrl": "https://www.buymeacoffee.com/kepano"
Expand Down
16 changes: 8 additions & 8 deletions src/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/main.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/css/main.min.css.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/scss/content/tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ body {
td, th {
padding: var(--table-cell-padding);
&:first-child {
padding-left: var(--table-edge-cell-padding-first);
padding-inline-start: var(--table-edge-cell-padding-first);
.table-cell-wrapper {
padding-left: 0;
padding-inline-start: 0;
}
}
&:last-child {
padding-right: var(--table-edge-cell-padding-last);
padding-inline-end: var(--table-edge-cell-padding-last);
.table-cell-wrapper {
padding-right: 0;
padding-inline-end: 0;
}
}
}
Expand All @@ -48,10 +48,10 @@ body {

.markdown-source-view.mod-cm6 .cm-table-widget {
.table-col-drag-handle {
top: 0;
left: 0 !important;
}
.table-row-drag-handle {
left: 0;
top: 0 !important;
}
}

Expand All @@ -61,10 +61,10 @@ body {
.markdown-source-view.mod-cm6 .dataview.table-view-table thead.table-view-thead tr th {
padding: var(--table-cell-padding);
&:first-child {
padding-left: var(--table-edge-cell-padding-first);
padding-inline-start: var(--table-edge-cell-padding-first);
}
&:last-child {
padding-right: var(--table-edge-cell-padding-last);
padding-inline-end: var(--table-edge-cell-padding-last);
}
}

Expand Down
2 changes: 1 addition & 1 deletion theme.css

Large diffs are not rendered by default.

0 comments on commit 6adf751

Please sign in to comment.