Skip to content

Conversation

@JammingBen
Copy link
Contributor

refs #937

@JammingBen JammingBen self-assigned this Sep 1, 2025
@JammingBen JammingBen force-pushed the refactor/tailwind-gap branch from b6cbf49 to deae168 Compare September 2, 2025 05:34
@JammingBen JammingBen marked this pull request as ready for review September 2, 2025 06:30
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 PR refactors gap utilities throughout the codebase by replacing custom CSS gap values with standardized Tailwind CSS gap utilities, as part of issue #937. The changes improve consistency and maintainability by removing custom SCSS gap definitions in favor of Tailwind's standardized spacing system.

  • Migrated button components from custom oc-button-gap-* classes to Tailwind gap-* utilities
  • Replaced CSS gap declarations in SCSS with corresponding Tailwind gap classes
  • Updated test snapshots to reflect the new gap class names throughout component renders

Reviewed Changes

Copilot reviewed 70 out of 70 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/web-runtime/src/components/Topbar/*.vue Migrated topbar components from custom gap styling to Tailwind gap utilities
packages/web-pkg/src/components/**/*.vue Updated various components to use Tailwind gap classes instead of custom CSS
packages/web-app-files/src/components/**/*.vue Refactored file management components to standardized gap utilities
packages/web-app-/src/**/.vue Updated app-specific components to use Tailwind gap system
tests/**/snapshots/*.snap Updated test snapshots to reflect new gap class names

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

@JammingBen JammingBen force-pushed the refactor/tailwind-gap branch from 575b7ec to 51764e6 Compare September 2, 2025 11:41
Comment on lines -338 to -340
&-item {
gap: 8px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, is already set on a button.

Copy link
Contributor

Choose a reason for hiding this comment

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

we have getTailwindSizeClass in design-system/src/helpers/sizeClasses.ts. Can't we place the gap helper there as well instead of a new file? Or move the getTailwindSizeClass helper into this new tailwind.ts file. ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have a PR coming up that removes the getTailwindSizeClass helper. We must not use interpolation with Tailwind classes because Tailwind doesn't recognize these classes and they might be missing in the bundle therefore.

</div>
</div>
<oc-list class="oc-tiles grid justify-start">
<oc-list class="oc-tiles grid justify-start gap-3">
Copy link
Contributor

Choose a reason for hiding this comment

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

you got me confused: here you have gap-3 for 1rem, in other places you had gap-2 for 1rem. What's correct now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gap-3 is the 1:1 adaption for 1rem. However, I found gap-2 fitting for the other place (I think it was the tile grid in the app store).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay I checked again. Removed one of them (didn't do anything because elements are not side by side) and set the other to gap-3 as well.

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.

🥳

@kulmann kulmann merged commit e2944ee into main Sep 3, 2025
28 checks passed
@kulmann kulmann deleted the refactor/tailwind-gap branch September 3, 2025 18:28
openclouders pushed a commit that referenced this pull request Sep 3, 2025
@openclouders openclouders mentioned this pull request Sep 3, 2025
1 task
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