mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 14:44:53 +00:00
fix: tsup should pass process.env for prod
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user