Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Aug 14, 2025

Migrates manual spacings via margin: and padding: to either Tailwind utility classes or CSS layers. Some could even be removed (especially setting them to 0 is often unnecessary now because the Tailwind preflight already sets them to 0).

With this change, the spacings in the UI should look pretty much exactly like before Tailwind.

Also removes the OcGrid component (not needed anymore) and introduces our mobile breakpoints in Tailwind.

Best to review this by commits.

refs #937

@JammingBen JammingBen self-assigned this Aug 14, 2025
@JammingBen JammingBen force-pushed the refactor/manual-spacings-tailwind branch from c93c6ee to e8546af Compare August 14, 2025 11:03
Base automatically changed from feat/tailwind to main August 18, 2025 07:58
@JammingBen JammingBen force-pushed the refactor/manual-spacings-tailwind branch from cb4a0ff to 8315972 Compare August 18, 2025 08:22
Some could be removed completely because those are already being handled via the Tailwind preflight. Others are now implemented via utility classes. A few of them need to stay as they are because they overwrite styles from vendors e.g.
Removes unnecessary margins and a few unused classes, migrates the rest to either utility classes or layers.

A few rare occasions can still be found, they will either be resolve later, or are necessary because they overwrite e.g. vendor styles.
Removes unnecessary paddings and a few unused classes, migrates the rest to either utility classes or layers.

A few rare occasions can still be found, they will either be resolve later, or are necessary because they overwrite e.g. vendor styles.
With tailwind, there is no need for this to be a dedicated component of the design-system. Just use tailwind classes if you need a grid.

It was only being used once (for whatever reason, it wasn't even necessary).
Gives icons a content box sizing to ensure they align well.
@JammingBen JammingBen force-pushed the refactor/manual-spacings-tailwind branch 6 times, most recently from 7f994db to fa337a6 Compare August 18, 2025 12:37
@JammingBen JammingBen force-pushed the refactor/manual-spacings-tailwind branch from fa337a6 to 420bb7f Compare August 18, 2025 12:38
@JammingBen JammingBen marked this pull request as ready for review August 18, 2025 12:52
@JammingBen JammingBen requested review from Copilot and kulmann August 18, 2025 12:52
@JammingBen JammingBen requested a review from AlexAndBear August 18, 2025 12:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors manual CSS spacing (margin and padding) throughout the codebase to use Tailwind utility classes. The goal is to migrate from custom CSS spacing properties to a standardized Tailwind-based approach while maintaining the existing visual appearance.

  • Replaces manual margin: and padding: CSS with Tailwind utility classes
  • Updates test snapshots to reflect the new Tailwind class names
  • Adds new breakpoint definitions to the Tailwind theme configuration

Reviewed Changes

Copilot reviewed 143 out of 144 changed files in this pull request and generated 8 comments.

File Description
packages/web-runtime/src/tailwind.css Added new breakpoint definitions for responsive design
Multiple test snapshots Updated to reflect new Tailwind spacing classes in component outputs
Various Vue components Replaced manual CSS spacing with Tailwind utility classes
CSS/SCSS files Removed manual spacing rules in favor of Tailwind utilities

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🥇

@JammingBen JammingBen merged commit cccee89 into main Aug 18, 2025
29 checks passed
@JammingBen JammingBen deleted the refactor/manual-spacings-tailwind branch August 18, 2025 14:30
@openclouders openclouders mentioned this pull request Aug 18, 2025
1 task
openclouders pushed a commit that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants