diff --git a/.vscode/settings.json b/.vscode/settings.json index 2ba4819d..647e1f4e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,6 +14,10 @@ { "id": "dashboard", "name": "Dashboard" + }, + { + "id": "panel", + "name": "Panel" } ], "squarl.bookmarks": [ @@ -23,6 +27,20 @@ "description": "Start of dashboard", "type": "file", "groupId": "dashboard" + }, + { + "name": "ViewPanel.tsx", + "path": "src/panelWebView/ViewPanel.tsx", + "description": "Start of panel", + "type": "file", + "groupId": "panel" + }, + { + "name": "styles.css", + "path": "src/panelWebView/styles.css", + "description": "Panel styles", + "type": "file", + "groupId": "panel" } ], } \ No newline at end of file diff --git a/src/panelWebView/components/Actions.tsx b/src/panelWebView/components/Actions.tsx index 7997fcfd..d2d434b6 100644 --- a/src/panelWebView/components/Actions.tsx +++ b/src/panelWebView/components/Actions.tsx @@ -29,9 +29,15 @@ const Actions: React.FunctionComponent = ({ metadata, settings }: { (settings && settings.scripts && settings.scripts.length > 0) && ( - settings.scripts.map((value, idx) => ( - - )) + <> +
+ + { + settings.scripts.map((value, idx) => ( + + )) + } + ) } diff --git a/src/panelWebView/components/BaseView.tsx b/src/panelWebView/components/BaseView.tsx index af0a7498..abf00592 100644 --- a/src/panelWebView/components/BaseView.tsx +++ b/src/panelWebView/components/BaseView.tsx @@ -55,12 +55,14 @@ const BaseView: React.FunctionComponent = ({settings, folderAndF
+ { !settings?.isInitialized && } + - + { customActions.map((script) => ( diff --git a/src/panelWebView/styles.css b/src/panelWebView/styles.css index 5afce082..aca74858 100644 --- a/src/panelWebView/styles.css +++ b/src/panelWebView/styles.css @@ -518,6 +518,11 @@ vscode-divider { } } +/* Divider */ +.divider { + background: var(--divider-background); +} + /* Git actions */ .git_actions__sync { display: flex;