Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Oct 1, 2025

Fixes the topbar save icon on hover and prevents thumbnails from horizontally compressing in the file list on small screens.

Also refactors 2 components to script setup. Review by commits for an easier time.

Fixes #1279

@JammingBen JammingBen self-assigned this Oct 1, 2025
@JammingBen JammingBen marked this pull request as ready for review October 1, 2025 08:31
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 fixes UI issues in the top bar component and improves thumbnail display in file lists. It addresses save icon hover color inconsistencies and prevents horizontal compression of thumbnails on small screens.

  • Refactors AppTopBar and ResourceListItem components to use Vue 3 Composition API
  • Removes CSS styles in favor of Tailwind utility classes for consistent styling
  • Updates CSS class structures to prevent thumbnail compression

Reviewed Changes

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

Show a summary per file
File Description
packages/web-pkg/src/components/AppTopBar.vue Converts to script setup and replaces CSS with Tailwind classes for hover colors
packages/web-pkg/src/components/FilesList/ResourceListItem.vue Converts to script setup and adjusts CSS classes to prevent thumbnail compression
packages/web-pkg/tests/unit/components/snapshots/AppTopBar.spec.ts.snap Updates test snapshots to reflect new CSS classes
packages/web-pkg/tests/unit/components/FilesList/snapshots/ResourceTiles.spec.ts.snap Updates test snapshots for simplified class names
packages/web-pkg/tests/unit/components/FilesList/snapshots/ResourceListItem.spec.ts.snap Updates test snapshots for modified component structure

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

:link="link"
:is-resource-clickable="isResourceClickable"
class="oc-resource-icon-link relative"
class="contents relative"
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

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

The contents CSS display value removes the element from the normal document flow, which could cause unexpected layout issues. Consider using a more explicit layout class like flex or inline-flex to maintain predictable behavior.

Suggested change
class="contents relative"
class="inline-flex relative"

Copilot uses AI. Check for mistakes.
:src="thumbnail"
:data-test-thumbnail-resource-name="resource.name"
class="oc-resource-thumbnail rounded-xs size-8 object-cover"
class="rounded-xs size-8 object-cover"
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

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

The removal of the oc-resource-thumbnail class may break existing CSS selectors or styling dependencies elsewhere in the codebase. Ensure this class isn't referenced in other stylesheets or used for testing selectors.

Suggested change
class="rounded-xs size-8 object-cover"
class="oc-resource-thumbnail rounded-xs size-8 object-cover"

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

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

👏

@JammingBen JammingBen merged commit a63d439 into main Oct 1, 2025
29 checks passed
@JammingBen JammingBen deleted the fix/tobar-save-icon-hover branch October 1, 2025 08:43
@openclouders openclouders mentioned this pull request Oct 1, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Top bar save hover color is wrong

3 participants