Skip to content

Commit

Permalink
Move drag handles inside table when width is 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Aug 27, 2024
1 parent f29716f commit 8b90e2e
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Minimal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,11 @@ body {
.is-mobile .cm-embed-block.cm-table-widget.markdown-rendered {
padding-bottom: 40px; }

/* Place drag handles inside the cell when width is 100% */
.table-100 .markdown-source-view.mod-cm6 .cm-table-widget .table-row-drag-handle,
.table-100.markdown-source-view.mod-cm6 .cm-table-widget .table-row-drag-handle {
inset-inline-end: calc(100% - var(--table-drag-handle-size)) !important; }

/* Override Sortable plugin */
.markdown-preview-view th,
.table-view-table > thead > tr > th,
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Minimal",
"version": "7.7.17",
"version": "7.7.18",
"minAppVersion": "1.6.1",
"author": "@kepano",
"authorUrl": "https://twitter.com/kepano",
Expand Down
5 changes: 5 additions & 0 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.css.map

Large diffs are not rendered by default.

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.

8 changes: 8 additions & 0 deletions src/scss/content/tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ body {
}
}

/* Place drag handles inside the cell when width is 100% */
.table-100 .markdown-source-view.mod-cm6,
.table-100.markdown-source-view.mod-cm6 {
.cm-table-widget .table-row-drag-handle {
inset-inline-end: calc(100% - var(--table-drag-handle-size)) !important;
}
}

/* Override Sortable plugin */
.markdown-preview-view th,
.table-view-table > thead > tr > th,
Expand Down
2 changes: 1 addition & 1 deletion theme.css

Large diffs are not rendered by default.

0 comments on commit 8b90e2e

Please sign in to comment.