Skip to Content Skip to Menu

[SOLVED] Image field and gallery image not responsive

  • LineMine
  • LineMine
  • OFFLINE
  • Posts: 160
  • Thanks: 22
  • Karma: 6
7 years 5 months ago - 7 years 5 months ago #294270 by LineMine
Hi

The image field option looks (almost) ideal for something I'm trying to put together in a user profile tab; however, it doesn't seem like the images that are loaded are really responsive, including those from the default canvas gallery. Is there a solution to this that I'm missing?

Thanks
Last edit: 7 years 5 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
7 years 5 months ago - 7 years 5 months ago #294275 by krileon
Replied by krileon on topic Image field and gallery image not responsive
They're completely responsive. I've no idea what you mean by them not being responsive or what you're expecting from them. See the below for CB Gallery mobile output.



If any image within CB is not responsive for you then it's likely a CSS conflict from your Joomla template or custom CSS breaking it. No image should be overflowing its container and should shrink as needed to fit within its container.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Attachments:
Last edit: 7 years 5 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • LineMine
  • LineMine
  • OFFLINE
  • Posts: 160
  • Thanks: 22
  • Karma: 6
7 years 5 months ago #294278 by LineMine
Replied by LineMine on topic Image field and gallery image not responsive
Hi
Ah, okay, and thanks for such a quick response.

It isn't the Gallery plugin that I was referring to by the way, but a gallery option that is available when setting up an Image field, so that you can choose to load the images from the default profile canvas gallery, for example. Should this also be responsive when loaded in this way? I', guessing the answer is yes...

Thanks again.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
7 years 5 months ago - 7 years 5 months ago #294284 by krileon
Replied by krileon on topic Image field and gallery image not responsive
The canvas background goes from 200px height to 125px height for mobile. The width is always 100% so it'll shrink based off the space available. It does not reposition as it doesn't need to. See the below comparison.

Desktop:


Mobile:


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Attachments:
Last edit: 7 years 5 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • LineMine
  • LineMine
  • OFFLINE
  • Posts: 160
  • Thanks: 22
  • Karma: 6
7 years 5 months ago - 7 years 5 months ago #294289 by LineMine
Replied by LineMine on topic Image field and gallery image not responsive
Thank you for following through on this.

I have attached a couple of images to show the issue.

I never have problems with the actual profile canvas image, on mobiles. It always works perfectly. It is just this image displayed in an image field which I have put in a profile tab.
Attachments:
Last edit: 7 years 5 months ago by LineMine.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
7 years 5 months ago - 7 years 5 months ago #294291 by krileon
Replied by krileon on topic Image field and gallery image not responsive
Works perfectly fine in my tests. My guess is your template has some CSS conflicting with or changing the img-thumbnail Bootstrap class causing the max-width: 100%; to be removed. See the below of it working fine.



Black border on the right was added to show where the container div stops. The image would overflow without its styling.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Attachments:
Last edit: 7 years 5 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum