fix: tsup should pass process.env for prod

This commit is contained in:
Peng Xiao
2022-06-14 11:01:20 +08:00
parent 6b5b1940d3
commit 0fc186ba23
4 changed files with 18 additions and 284 deletions

View File

@@ -7,6 +7,12 @@ import type { Shape } from '~lib'
export const StatusBar = observer(function StatusBar() {
const app = useApp<Shape>()
React.useEffect(() => {
const canvas = document.querySelector<HTMLElement>('.logseq-tldraw-wrapper .tl-canvas')
if (canvas) {
canvas.style.height = 'calc(100% - 32px)'
}
}, [])
return (
<div className="statusbar">
{app.selectedTool.id} | {app.selectedTool.currentState.id}