Skip to content

Conversation

@JammingBen
Copy link
Contributor

Fixes an issue where loaded previews in the file list would be pixelated after using the search preview and refactors the component to script setup on the way.

fixes #370

Fixes an issue where loaded previews in the file list would be pixelated after using the search preview.
@JammingBen JammingBen self-assigned this Mar 20, 2025
Copilot AI review requested due to automatic review settings March 20, 2025 06:08
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 addresses the pixelated preview issue after search and refactors the ResourcePreview component to use script setup.

  • Updated type casting and snapshot testing in the unit tests
  • Refactored ResourcePreview.vue to use script setup with updated lifecycle hooks and prop destructuring

Reviewed Changes

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

File Description
packages/web-pkg/tests/unit/components/Search/ResourcePreview.spec.ts Adjusted type casting for testing and updated component stub reference
packages/web-pkg/src/components/Search/ResourcePreview.vue Converted component to script setup, updated lifecycle hooks, and modified prop usage

@kulmann kulmann merged commit ada4ac8 into main Mar 20, 2025
@kulmann kulmann deleted the fix/pixelated-images-after-searching branch March 20, 2025 09:41
This was referenced Mar 20, 2025
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.

Search preview loading should respect loaded previews

3 participants