Closed RiugaBachi closed 2 years ago
@RiugaBachi Could you post a screenshot/video of how this looks on your browser/computer?
(We don't have to mirror the Tailwind style faithfully; so we have the creative freedom to change the indicator's styling; but since on my end the position of the indicator looks a bit off I wonder if we are facing a browser-specific difference).
I'm using vivaldi.
On Brave (a Chromium browser) as well as Safari it looks like this:
...
Hover tooltips does work, FWIW.
I wonder if we can spot the precise difference by running the Tailwind CSS compiler on the current status indicator and then compare the generated styles with the one in this PR.
Could you see if that resolves the issue for you?
@RiugaBachi It behaves the same, as in I see:
Are you not able to reproduce this locally in Chrome or Chromium?
Yea, it appears as it does in this comment for Vivaldi, Brave, Firefox on my system.
So maybe this is a macOS-specific issue. Okay, I'll try to tweak this later.
FTR, tailwind generates this CSS: https://gist.github.com/srid/2471813953a6df9b24909b9bb1d3cd2b#file-tailwind-compiled-css
So I had a hunch and toyed around with measurements until I figured out it was box-sizing: border-box
. This should definitely make it consistent across all resolutions.
I basically noticed how (vanilla width
) = (tailwind (width
+ padding
+ border
)) and surmised there was some property to perform padding/border compensation.
Also apologies, I am a bit inept at UI/UX lmao.
Yup, that works (on Brave)!
Re: border-box I think they talk about it here: https://tailwindcss.com/docs/box-sizing
I am a bit inept at UI/UX lmao.
Most programmers are. :-) Tailwind is great for design for that reason.
:eyes:
Resolves #91 .