Comments (6)
Do you have a CSB that I can play around with? I'd like to avoid adding a new option if possible in this case.
Setting padding-bottom: 0px
as !important
on userland might be a good workaround for now, I suppose.
body {
padding-bottom: 0px !important;
}
from jotai-devtools.
Thanks for the CSB! Let me think of other solutions.
I'm not a huge fan of modifying the body's style, it leads to hacks like !important
on userland, and it's also a side-effect from the library's point of view. So, I'm inclining towards removing the padding-bottom
feature entirely. I think the majority of the users would naturally expect the component to float on top of their content anyways. We could provide a copy-pastable snippet to the users that may need this functionality ๐ค
Another temporary workaround (while we land on a proper fix) would be to set the height of #root
to 100vh
, like this?
#root {
height: 100vh;
}
BTW, your app looks cool!
from jotai-devtools.
@PrettyCoffee - I releasedย the fix as part of ^0.4.0
๐ Please feel free to re-open the issue if the problem still persists.
from jotai-devtools.
Here is a somewhat downsized codesandbox example of the problem:
https://codesandbox.io/s/jotai-devtools-padding-owp02c?file=/src/styles.css
That's what I am currently working on (for more context):
What I am trying to do with the devtools is something like this, when pressing a specific key:
I am able to achieve most of these things by using it's css classes and existing props, but the body padding requires me to use !important
which I would prefer not to do, since !important
is a bad practice in my opinion and not an option for me.
That being said, my problem seems to be pretty specific since I got this 100% height layout. And there is also always the option to use useAtomDevtools
, if you prefer not to introduce an option for the padding. ๐
from jotai-devtools.
Very good point.
Usually I try to avoid height: 100vh;
since that can introduce laggy behavior for mobile devices, but this doesn't matter here since the app does not have a scope for mobile devices. Therefore I will just use that for now and wait for the fix, thank you! ๐
from jotai-devtools.
Working perfectly, thank you!
from jotai-devtools.
Related Issues (20)
- Uncaught ReferenceError: process is not defined (jsondiffpatch) HOT 4
- Issue with NextJs 13 and Mantine v7 HOT 2
- Feature request: make the UI minimize on ESC
- Chrome Extension?
- How can i use devtools in build for test server
- Atom rendering hangs on complex objects (such as the Firebase User object) HOT 4
- jotai-devtools not working with PNPM (declare jotai as a dependency) HOT 2
- Devtools error/crashing with NextJS 14.1 HOT 8
- [Feature Request] Trace source of atom updates
- [Feature Request] Performance Profiling Tools
- [Feature Request] Improve `jotai-scope` support HOT 1
- Missing style.css HOT 2
- CSS leaking HOT 17
- MantineThemeProvider.tsx:11 Uncaught Error: @mantine/core: MantineProvider was not found in component tree, make sure you have it in your app HOT 2
- Dark mode selection forgotten after page refresh HOT 1
- Build breaking in NextJS 13.2 HOT 3
- @tabler/icons-react dependency is huge HOT 6
- jotai + vite + react: Unable to Use jotai-devtools HOT 1
- can we use this in production builds?
- If I use npm v7.x or later, do I need to install emotion? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jotai-devtools.