Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

( SOLVED - not a bug! ) Some images resize after CSS edit some do not. All using same div but not all responding. #1359

Open
student-driver opened this issue Feb 12, 2025 · 10 comments

Comments

@student-driver
Copy link

student-driver commented Feb 12, 2025

🐞 bug report

✍️ Description

I have a simple webpage with some text and several images. When I edit the CSS for the image sizing, upon refresh, only some of the images respond and display at the correct size. All the images display properly in a normal Chrome browser but not in the Responsively preview. I can't seem to get a refresh to refresh. Some but not all of the images respond.

🕵🏼‍♂️ Is this a regression?

This is my first install of Responsively, so I do not know how previous versions worked.

🔬 Minimal Reproduction

Edit CSS for image size
for example change

.img-photos {
     height: auto;
     max-width: 80%;
]

to

.img-photos {
     height: auto;
     max-width: 95%;
]

and only some of the photos in the class display the change.

🌍 Your Environment

Windows 10 pro x64 v19045
MSI laptop

🔥 Exception or Error or Screenshot

Image

@student-driver student-driver changed the title Some images resize after CSS edit some don not. All using same div but not all responding. Some images resize after CSS edit some do not. All using same div but not all responding. Feb 12, 2025
@giyosphere
Copy link

Try this one, ensure you clear the cache to load the latest CSS. In Responsively, press Ctrl + Shift + R (or Cmd + Shift + R on macOS) to force a hard refresh. You may also want to clear cached files manually from Responsively.

@giyosphere
Copy link


img {
    display: block;
    height: auto;
    max-width: 100%;
}

@giyosphere
Copy link

this following CSS prevent layout shift

@student-driver
Copy link
Author

Hi,
Thanks for the suggestions. I had tried flushing cache, and deleting history earlier today. I even uninstalled and reinstalled the application. It did not help.

I added the block line to the CSS and it did increase the number of images that displayed at the correct size, but the block also interfered with the "cascade" and messed up alignment, which should be an easy fix, but it did not solve the image sizing problem 100%.

I want to empty the cache manually, but I am unsure where it is.

I'm guessing here, so I just deleted everything:

C:\Users\student-driver\AppData\Roaming\ResponsivelyApp\Cache\Cache_Data

And there was no change when I relaunched the app and loaded the page again.

Thank you for the help.

@student-driver
Copy link
Author

App Version: 1.16.0
Electron Version: 27.0.4
Chrome Version: 118.0.5993.129
Node.js Version: 18.17.1
V8 Version: 11.8.172.17-electron.0
OS: Windows_NT x64 10.0.19045

@giyosphere
Copy link

Ohh iyou might want to clear other cache locations in your AppData folder, such as Local and LocalLow, since some cached files might still be affecting Responsively. You can also try disabling caching in the Developer Tools, ensuring everything is reloaded when you refresh the page. It’s important to check if any inline styles or JavaScript are interfering with your CSS. Testing the page in a regular browser like Chrome and clearing its cache can help verify if the styles are applied correctly. Make sure your CSS selectors target all the images without any conflicts.

@giyosphere
Copy link

The versions you're using Electron 27.0.4, Chrome 118, and the app itself (1.16.0) could be contributing to the issue. Sometimes, updates or changes in Electron or Chrome can cause rendering problems or conflicts, especially with how images are displayed or resized. It’s worth checking Responsively's GitHub for any known issues with these versions. If the problem started after updating, try downgrading the app or updating to the latest version to see if it resolves the issue. Testing on a different machine could also help identify if these specific versions are the cause.

@student-driver
Copy link
Author

OK Thanks I'll check other versions in the morning.

Regarding the CSS and HTML, the page displays properly with the standard Chrome or Firefox Browser on my laptop and phone.

I did not find any Responsively cache folders in ...\AppData\Local or ...\AppData\LocalLow.

The simulated MacBook laptop in Responsively, is where the trouble seems to occur.

Thank you.

@giyosphere
Copy link

ahh ok your welcome. since the issue occurs in the MacBook simulation in Responsively, I recommend checking your media queries to ensure they’re not affecting the MacBook viewport specifically. Try testing the page in other device simulations within Responsively to see if the issue is isolated to the MacBook view. Also, be aware that device-specific characteristics like a Retina display might cause rendering differences, so you may need to adjust your CSS accordingly. Lastly, consider updating or resetting Responsively to eliminate any potential settings or cache issues.

@student-driver
Copy link
Author

student-driver commented Feb 13, 2025

Hi, the issue is solved. I found that a single close div was missing.

When I added the

</div>

at the correct place everything cleared up.

Thank you!

@student-driver student-driver changed the title Some images resize after CSS edit some do not. All using same div but not all responding. ( SOLVED - not a bug! ) Some images resize after CSS edit some do not. All using same div but not all responding. Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants