Closed (fixed)
Project:
Rivet
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Aug 2024 at 05:28 UTC
Updated:
21 Aug 2024 at 11:49 UTC
Jump to comment: Most recent, Most recent file
On Mobile view Blog post is not proper aligned when image is there in blog.
Before fixing issue

After fixing issue

| Comment | File | Size | Author |
|---|---|---|---|
| #11 | Screen Shot 2024-08-07 at 6.37.10 AM.png | 183.83 KB | jwilson3 |
| #8 | Screen Shot 2024-08-07 at 2.11.45 AM.png | 138.03 KB | jwilson3 |
| #5 | Mobile-view-Blog-post-issues-3465127-05.png | 66.1 KB | bhaveshdas |
| #3 | after.png | 205.49 KB | alok_singh |
| before.png | 165.37 KB | alok_singh |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
alok_singh commentedAfter Fixing the issue
Comment #4
rajan kumar@2026 commentedComment #5
bhaveshdas commentedHi, I have tested MR !7 in Drupal 10
Mobile view Blog post its proper aligned when image is there in blog.
I moved it to RTBC.
Thankyou !!
Comment #7
jwilson3Needs work.
npm install; npm run buildto build the CSS because the source map file wasn't regenerated.Comment #8
jwilson3After reviewing the code change more closely this needs an alternate approach because the upstream Rivet library suffers from the same problem at small screen sizes:
https://rivet.iu.edu/components/card/?example=horizontal-card
I don't see this getting "fixed" in the upstream, therefore, there are a few approaches we can take:
rvt-card rvt-card--horizontal [ rvt-flex-column rvt-flex-row-sm-up ](codepen).rvt-c-cardimplementation to properly scope the change, following best practices for extending Rivet.Comment #9
jwilson3Comment #10
jwilson3Comment #11
jwilson3Rebased again and tested locally. Looks good.
Comment #12
jwilson3Comment #13
jwilson3Thanks for your help!