mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 06:28:54 +00:00
fix(nui): Visibility setting and building
This commit is contained in:
1 parent
d1a5a9e249
commit
c8857e18c4
3 files changed
+5
-3
No files matched your search
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "web",
|
||||
"version": "0.1.0",
|
||||
"homepage": "web/build",
|
||||
"name": "ui",
|
||||
"version": "1.0.0",
|
||||
"homepage": "ui/build",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@chakra-ui/react": "^1.7.3",
|
||||
|
||||
@@ -7,6 +7,7 @@ body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
height: 100vh;
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
#root {
|
||||
|
||||
@@ -24,6 +24,7 @@ export const VisibilityProvider: React.FC = ({ children }) => {
|
||||
const keyHandler = (e: KeyboardEvent) => {
|
||||
if (['Escape'].includes(e.code)) {
|
||||
fetchNui('exit');
|
||||
setVisible(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user