Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit f2f1148

Browse files
authored
Merge pull request #179 from trey-wallis/dev
Minimal theme support + menu upgrade
2 parents a75c3ae + 53b3d68 commit f2f1148

File tree

48 files changed

+438
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+438
-254
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Once a tag has been added to a cell, you click on any cell that has that tag and
169169

170170
### Dates
171171

172-
Dates can be rendered in cells that are in a column with the `date` type selected. To render a date please follow the format `mm/dd/yyyy` in your markdown.
172+
Dates can be rendered in cells that are in a column with the `date` type selected. To render a date please follow the format `yyyy/mm/dd` in your markdown.
173173

174174
### Checkboxes
175175

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"author": "Trey Wallis",
77
"authorUrl": "https://github.com/trey-wallis",
88
"isDesktopOnly": false,
9-
"version": "3.5.0"
9+
"version": "3.5.1"
1010
}

package-lock.json

+154-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-notion-like-tables",
3-
"version": "3.5.0",
3+
"version": "3.5.1",
44
"description": "Notion-like tables for Obsidian.md",
55
"main": "main.js",
66
"scripts": {
@@ -21,6 +21,7 @@
2121
"@types/lodash": "^4.14.180",
2222
"@types/node": "^16.11.26",
2323
"@types/react": "^17.0.40",
24+
"@types/react-datepicker": "^4.4.1",
2425
"@types/react-dom": "^17.0.14",
2526
"@types/uuid": "^8.3.4",
2627
"@typescript-eslint/eslint-plugin": "^5.2.0",
@@ -38,6 +39,7 @@
3839
"@mui/icons-material": "^5.5.0",
3940
"html-react-parser": "^1.4.9",
4041
"react": "^17.0.2",
42+
"react-datepicker": "^4.8.0",
4143
"react-dom": "^17.0.2",
4244
"uuid": "^8.3.2"
4345
},

src/app/App.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useEffect, useState, useRef } from "react";
22

33
import EditableTd from "./components/EditableTd";
44
import Table from "./components/Table";
5-
import DragMenu from "./components/DragMenu";
5+
import RowMenu from "./components/RowMenu";
66
import EditableTh from "./components/EditableTh";
77

88
import { initialHeader } from "./services/appData/state/header";
@@ -569,22 +569,19 @@ export default function App({
569569
// const margin = previewStyle.viewWidth - previewStyle.sizerWidth;
570570
// //The margin can be 0 when the window is small
571571
// if (tableWidth <= previewStyle.sizerWidth || margin === 0) {
572-
// // console.log("HERE1");
573572
// //This will set the width to the size of the preview, being a max-width of 700px
574573
// style = {
575574
// left: "0px",
576575
// width: "100%",
577576
// };
578577
// } else if (tableWidth <= previewStyle.viewWidth) {
579-
// // console.log("HERE2");
580578
// const calculatedMargin = previewStyle.viewWidth - tableWidth;
581579
// const BUTTON_WIDTH = 30;
582580
// style = {
583581
// left: `-${calculatedMargin / 2 - BUTTON_WIDTH}px`,
584582
// width: `${tableWidth}px`,
585583
// };
586584
// } else {
587-
// console.log("HERE3");
588585
// console.log(`-${margin / 2}px`);
589586
// style = {
590587
// left: `-${margin / 2}px`,
@@ -687,7 +684,7 @@ export default function App({
687684
);
688685
})}
689686
<td className="NLT__td">
690-
<DragMenu
687+
<RowMenu
691688
rowId={row.id}
692689
isFirstRow={i === 0}
693690
isLastRow={

0 commit comments

Comments
 (0)