Use relative font size and set appropriate overflow behavior #355

Merged
floatingghost merged 2 commits from xarvos/pleroma-fe:update-css into develop 2023-12-15 12:12:28 +00:00
Contributor

Two minor styling updates:

  • set overflow: auto instead of overflow: scroll for description container, because it never overflow horizontally and there's a useless scrollbar (screenshot). overflow: auto will just shows scrollbar when it overflows.
  • use relative unit rem for font-size rather than px, so it respects users' browser settings. I would much prefer it to be 1rem (which is the default and this block can be removed), but I don't want to break anyone's styling and 0.875rem would be the same 14px if one uses the default font size (16px)

current description container with a useless horizontal screenshot

Two minor styling updates: - set `overflow: auto` instead of `overflow: scroll` for description container, because it never overflow horizontally and there's a useless scrollbar (screenshot). `overflow: auto` will just shows scrollbar when it overflows. - use relative unit `rem` for font-size rather than `px`, so it respects users' browser settings. I would much prefer it to be 1rem (which is the default and this block can be removed), but I don't want to break anyone's styling and 0.875rem would be the same 14px if one uses the default font size (16px) ![current description container with a useless horizontal screenshot](/attachments/265854d6-ef02-4cd9-89b5-a6a671c80155)
xarvos added 1 commit 2023-11-05 02:28:46 +00:00
xarvos force-pushed update-css from f8dcb33de0 to 235c734d37 2023-11-05 02:32:57 +00:00 Compare
xarvos changed title from Update some styling to Use relative font size and set appropriate overflow behavior 2023-11-06 07:16:38 +00:00

seems ok to me!

thanks

seems ok to me! thanks
floatingghost merged commit 7da1687f31 into develop 2023-12-15 12:12:28 +00:00
floatingghost deleted branch update-css 2023-12-15 12:12:29 +00:00
mel referenced this pull request from a commit 2024-05-15 22:36:01 +00:00
Sign in to join this conversation.
No description provided.