-
AuthorPosts
-
bobptz Friend
bobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 18, 2017 at 11:33 am #1011809If you have a small image (width about 100 px) then in mobiles it will take the entire width, it will look too large and with low resolution. This may look very ugly.
One solution is to write the following rule in custom.css
.img-responsive { width: auto!important; }However since the above behaviour seems very odd to me, I suspect it may be a bug. Maybe you could tell the developers to look into this issue please?
The way to more permanently fix the problem, made the following change in line 263 in file: /templates/purity_iii/less/joomla.less
BEFORE:
width: 100% !important;AFTER:
width: auto;(This was initially discussed here: https://www.joomlart.com/forums/topic/cannot-control-images-in-screens-under-992px/ )
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 20, 2017 at 3:40 am #1012015Hi
The style was defined to make the image 100% width so it will resize the images.
As I asked the URL in the previous post. Can u share the URL here so that i can check it and suggest you changes?
Also do not make it auto because if you use big image you will face issue in resize.bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 20, 2017 at 5:32 am #1012057This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 20, 2017 at 6:36 am #1012072Hi
Kindly replace the width with:auto tomax-width:100%!important
This will fix the problem.
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 20, 2017 at 6:47 am #1012079Hi
The original code is:
// Reponsive Article Images on Mobile @media screen and (max-width: @screen-md) { article, .article-intro { img, img[align=left], img[align=right], .img_caption, .article-image-full, .article-image-intro, .img-intro-none, .img-intro-left, .img-intro-right, .img-fulltext-none, .img-fulltext-left, .img-fulltext-right, { float: none !important; margin-left: 0; margin-right: 0; width: 100% !important; } } }
So I will replace it with :
// Reponsive Article Images on Mobile @media screen and (max-width: @screen-md) { article, .article-intro { img, img[align=left], img[align=right], .img_caption, .article-image-full, .article-image-intro, .img-intro-none, .img-intro-left, .img-intro-right, .img-fulltext-none, .img-fulltext-left, .img-fulltext-right, { float: none !important; margin-left: 0; margin-right: 0; width: 100% !important; max-width:100%!important; // <<<==== Added new code } } }
Correct?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 20, 2017 at 7:00 am #1012087Hi
You have to remove width: 100% !important; otherwise your image will be 100% width.Regards
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 20, 2017 at 8:09 am #1012109Yes it works very good for small and large images. Here is the code:
// Reponsive Article Images on Mobile @media screen and (max-width: @screen-md) { article, .article-intro { img, img[align=left], img[align=right], .img_caption, .article-image-full, .article-image-intro, .img-intro-none, .img-intro-left, .img-intro-right, .img-fulltext-none, .img-fulltext-left, .img-fulltext-right, { float: none !important; margin-left: 0; margin-right: 0; max-width: 100% !important; // changed from width to max-width } } }
Maybe the developers should be notified and this change should go into the next release?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 20, 2017 at 8:20 am #1012114Hi
Yes i already notified it as improvement in the style code.Regards
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
September 10, 2017 at 8:14 pm #1061320Hi
I have downloaded and I am testing ver 1.2.0 now.
The issue is exactly the same (not fixed).
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 11, 2017 at 12:45 am #1061335Hi
I will remind the team again to look on this issue.Regards
bobptz Friendbobptz
- Join date:
- November 2016
- Posts:
- 178
- Downloads:
- 8
- Uploads:
- 19
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
November 15, 2017 at 5:36 am #1074425Hi
This issue seems to be fixed in version 1.2.1.
I have not noticed any change in the code of /templates/purity_iii/less/joomla.less, but the issue does seem resolved.
Thanks
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 15, 2017 at 8:14 am #1074453Hi
Sorry, I discussed with the team and this looks a personal customisation as in small mostly image preferred to fill the container width.
You can apply the suggestion in local folder and it will not be overridden on template updates.Regards
- This reply was modified 7 years ago by Pankaj Sharma.
-
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by Pankaj Sharma 7 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum