Giter VIP home page Giter VIP logo

Comments (3)

falkoschindler avatar falkoschindler commented on July 24, 2024 1

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.

falkoschindler avatar falkoschindler commented on July 24, 2024

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.

python-and-fiction avatar python-and-fiction commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.