Skip to content

Commit

Permalink
feat: suitable for theme for input
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 23, 2024
1 parent 940103c commit cc50344
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"recommendations": ["amodio.tsl-problem-matcher", "emeraldwalk.runonsave"]
"recommendations": [
"amodio.tsl-problem-matcher",
"emeraldwalk.runonsave",
"connor4312.css-theme-completions"
]
}
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
* [usewiki2](https://github.com/oeyoews/usewiki2) 浏览器扩展的 的 vscode 插件

<!-- * manage: https://marketplace.visualstudio.com/manage/publishers/oeyoews
* publish: https://vscode.github.net.cn/api/working-with-extensions/publishing-extension -->
<!--
* manage: https://marketplace.visualstudio.com/manage/publishers/oeyoews
* publish: https://vscode.github.net.cn/api/working-with-extensions/publishing-extension
* https://code.visualstudio.com/api/extension-guides/webview
-->

## TODO

Expand All @@ -23,4 +26,4 @@ pnpm dev ## and press `F5` to debug

## Credits

https://github.com/microsoft/vscode-extension-samples/blob/main/webview-view-sample
https://github.com/microsoft/vscode-extension-samples/blob/main/webview-view-sample
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"publisher": "oeyoews",
"name": "usewiki2",
"displayName": "usewiki2",
"version": "0.7.3",
"version": "0.8.0",
"private": true,
"packageManager": "[email protected]",
"description": "",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ img {
max-width: 100%;
height: auto;
} */

.input-bg {
border: none;
background: var(--vscode-input-background) !important;
color: var(--vscode-input-foreground) !important;
}
4 changes: 2 additions & 2 deletions packages/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function App() {
}

return (
// vscode-dark
<div className="relative h-screen">
<h1 className="text-3xl font-bold">TiddlyWiki</h1>
<ContextMenu>
Expand All @@ -50,13 +51,12 @@ function App() {
<ContextMenuItem>Coming</ContextMenuItem>
</ContextMenuContent>
</ContextMenu>

<div className="absolute inset-x-0 bottom-2 flex flex-col gap-2 p-0">
<Input
ref={inputRef}
type="text"
placeholder="input..."
className="focus-visible:ring-0"
className="focus-visible:ring-0 border-none input-bg"
onKeyDown={handleInputBoxSave}
onChange={(e) => setInputValue(e.target.value)}
value={inputValue}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/tsconfig.app.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit cc50344

Please sign in to comment.