missing icon indicating copy to clipboard operation
missing copied to clipboard

1.1.0 navbar alignment

Open j4mie opened this issue 2 years ago • 8 comments

Hi, thanks for missing.style!

I seem to have a regression between 1.0.9 and 1.1.0 with the following markup:

    <header class="navbar">
      <div>
        <a href="/" class="allcaps">
          Reactor⚡
        </a>
      </div>
      <nav aria-label="Dashboard sections">
        <ul role="list">
          <li>
            <a href="/climate/">
              Climate
            </a>
          </li>
          <li>
            <a href="/energy/">
              Energy
            </a>
          </li>
          <li>
            <a href="/system/logs/">
              System
            </a>
          </li>
        </ul>
      </nav>
    </header>

On 1.0.9 it looks like this:

image

On 1.1.0 it looks like this:

image

(in other words, the navbar is now right-aligned rather than centred).

j4mie avatar Sep 03 '23 12:09 j4mie

I can't reproduce on the latest version, can you check if it's been fixed?

dz4k avatar Jan 26 '24 23:01 dz4k

@dz4k still the same for me on 1.1.1. Is there anything I can do to help debug?

j4mie avatar Jan 31 '24 20:01 j4mie

@j4mie could you make a minimal reproduction on CodePen or somewhere similar?

dz4k avatar Feb 01 '24 05:02 dz4k

have the same problem with 1.1.1 - but only of Firefox, on Edge it's centered.

graf0 avatar Feb 08 '24 07:02 graf0

it seems that under edge following style is applyied to last child of nav: obraz

But on firefox - it's not applied.

graf0 avatar Feb 08 '24 08:02 graf0

Hopefully I've done this right: https://codepen.io/j4miem/pen/ExMePqK

Agreed with @graf0 that it seems to be Firefox-specific issue. Works fine in Chrome and Safari.

j4mie avatar Feb 08 '24 11:02 j4mie

Does anyone know a workaround for this? I thought it was default behavior since I use Firefox, spent a while trying to fix it. The issue appears after upgrading from 1.0.13 to 1.1.0.

Fingel avatar Feb 21 '24 20:02 Fingel

Does anyone know a workaround for this? I thought it was default behavior since I use Firefox, spent a while trying to fix it.

The issue appears after upgrading from 1.0.13 to 1.1.0.

Try to add margin-right:auto to last element in navbar

graf0 avatar Feb 23 '24 12:02 graf0

this was an artifact of our compiler being too overzealous with backcompat and replacing modern css with stuff that doesn't work. should be fixed in 1.1.2 (releasing soon)

dz4k avatar Jun 13 '24 16:06 dz4k

❤️ thank you!

j4mie avatar Jun 14 '24 09:06 j4mie