-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 Show a message in Project inspecto panel when there is no project open
- Loading branch information
Showing
6 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { element } from '@mkenzo_8/puffin' | ||
import { css as style } from '@emotion/css' | ||
|
||
const panelStyled = style` | ||
&[empty=true]{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
& > p { | ||
text-align: center; | ||
font-size: 13px; | ||
user-select: none; | ||
} | ||
} | ||
&[empty=false]{ | ||
& > p{ | ||
display: none; | ||
} | ||
} | ||
` | ||
|
||
export default function ContainerPanel() { | ||
return element` | ||
<div class="${panelStyled}"/> | ||
` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters