Comments (3)
Oh great, @python-and-fiction!
Changing the Tailwind version in my example from #3176 (comment) to 3.2.0 (which is currently used by NiceGUI 1.4.x) breaks indeed the layout.
<script src="https://cdn.tailwindcss.com/3.2.0"></script>
Since we usually update dependencies for major releases only, I'll schedule this fix for the upcoming 2.0.0.
from nicegui.
Thanks for bringing this up, @v479038280!
This bug very strange. I tried to reproduce it with Quasar and Tailwind, but it works as expected:
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/quasar.prod.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div id="q-app" style="display: flex; flex-direction: column; align-items: start">
<div class="bg-blue-100 min-h-[220px]">Hello</div>
<div class="bg-blue-100 min-h-96">Hello</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/quasar.umd.prod.js"></script>
<script>
const app = Vue.createApp({ setup: () => ({}) });
app.use(Quasar);
app.mount("#q-app");
</script>
</body>
</html>
Does anyone have an idea what is going on?
from nicegui.
Maybe tailwindcss version is not 3.4.0
or newer.
I found the same problem in tailwindcss:
tailwindlabs/tailwindcss#12358 (comment)
The solution is upgrading tailwindcss to 3.4.3
.
And i think falkoschindler 's code works well, because tailwindcss version in https://cdn.tailwindcss.com is newer than 3.4.0
(3.4.4
for now).
from nicegui.
Related Issues (20)
- Make `client.ip` available before socket connection is established
- Input unable to add forward slash (/) when it is bind to path HOT 2
- on_upload doesn't seem to be working HOT 10
- Connection lost within 3 seconds when app is deployed on kubernetes HOT 1
- TypeError: Client.__init__() missing 1 required keyword-only argument: 'request' HOT 5
- Pytest for pages with a URL other than root ("/") fail. HOT 2
- Tooltip HOT 4
- ui.clipboard.read does not work in Safari and native mode on Mac HOT 1
- ui.number displayed number format not maintained HOT 2
- Tooltip not working with ui.upload component HOT 2
- ui.codemirror not updating when the binded dictionary changes HOT 3
- 3D objects get stuck in scene when reloading. HOT 1
- Updating Ploty chart with a large dataset causes the UI to hang HOT 8
- ui.select() dropdown width unexpected behaviour
- Reloading is very slow HOT 10
- `True (error) or False (no error)` in `Input validation` should be `True (no error) or False (error)` HOT 1
- How to cut startup time in half while native=True. HOT 2
- [WinError 10013] at start (Problem binding to port 80?) HOT 5
- Update `fastapi` to 0.111.1 HOT 2
- unexpected package issue 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 nicegui.