Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates the class attributes for image containers on list image cards, affecting both the component definition and its usage in the About Us view.
- Fixed CSS class attributes in the list-image-card component.
- Adjusted image container classes in the About Us view for consistent styling.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| resources/views/components/list-image-card.blade.php | Updated image container class attributes with a potential duplicate "h-30" entry. |
| resources/views/app/about-us/index.blade.php | Changed the image container width from "w-auto" to "w-20". |
| @props([ | ||
| 'image', | ||
| 'imageContainerClassAttributes' => 'h-30 w-auto flex-shrink-0 overflow-hidden', | ||
| 'imageContainerClassAttributes' => 'h-30 h-30 flex-shrink-0 overflow-hidden', |
There was a problem hiding this comment.
The class attribute contains a duplicate 'h-30'. If this is unintentional, consider replacing the duplicate with the intended width class (e.g., 'w-auto').
Suggested change
| 'imageContainerClassAttributes' => 'h-30 h-30 flex-shrink-0 overflow-hidden', | |
| 'imageContainerClassAttributes' => 'h-30 flex-shrink-0 overflow-hidden', |
| :name="$contact->name" | ||
| :image="$contact->image" | ||
| image-container-class-attributes="h-20 w-auto flex-shrink-0 overflow-hidden"/> | ||
| image-container-class-attributes="h-20 w-20 flex-shrink-0 overflow-hidden"/> |
There was a problem hiding this comment.
The update changes the width from 'w-auto' to 'w-20', which may introduce inconsistency with other parts of the application if not intended; please verify if a fixed width is the desired behavior.
Suggested change
| image-container-class-attributes="h-20 w-20 flex-shrink-0 overflow-hidden"/> | |
| image-container-class-attributes="h-20 w-auto flex-shrink-0 overflow-hidden"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.