Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Scale down Index Gallery Images on Mobile


Question

Site URL: https://www.kelseynaef.com/k-plus-t-forever

I'd like to have the whole index gallery featured at the top of the page to scale down on mobile to decrease the chances of the illustrated text "KELSEY & TRAVIS" being cut off on mobile devices. I have an older iphone so it looks fine on my phone, but on most newer phones, it's getting cut off. 

Ideally, the height of the gallery is decreased, and the image scales proportionally within it and stays centered, but I'm having trouble making this happen.

Any help would be great, thanks. 

Lauren 

Link to comment

3 answers to this question

Recommended Posts

  • 0
On 4/9/2021 at 6:36 PM, lulu.lindberg said:

Site URL: https://www.kelseynaef.com/k-plus-t-forever

I'd like to have the whole index gallery featured at the top of the page to scale down on mobile to decrease the chances of the illustrated text "KELSEY & TRAVIS" being cut off on mobile devices. I have an older iphone so it looks fine on my phone, but on most newer phones, it's getting cut off. 

Ideally, the height of the gallery is decreased, and the image scales proportionally within it and stays centered, but I'm having trouble making this happen.

Any help would be great, thanks. 

Lauren 

try if this help

@media only screen and (max-width: 640px) {
      #kplust .Index-gallery-wrapper {
        height: 30vh !important;
      }
      #kplust .Index-gallery-wrapper .Index-gallery-item {
        height:100% !important;
      }
      #kplust .Index-gallery-wrapper .Index-gallery-item-image {
        background-color: #fff;
      }
      #kplust .Index-gallery-wrapper .Index-gallery-item-image img {
        left: auto !important;
        width: auto !important;
        height: 100% !important;
      }
}

image.png.26fb588fabce0fbb2938aef8ee454930.png

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 0
Posted (edited)
3 hours ago, bangank36 said:

try if this help




@media only screen and (max-width: 640px) {
      #kplust .Index-gallery-wrapper {
        height: 30vh !important;
      }
      #kplust .Index-gallery-wrapper .Index-gallery-item {
        height:100% !important;
      }
      #kplust .Index-gallery-wrapper .Index-gallery-item-image {
        background-color: #fff;
      }
      #kplust .Index-gallery-wrapper .Index-gallery-item-image img {
        left: auto !important;
        width: auto !important;
        height: 100% !important;
      }
}

image.png.26fb588fabce0fbb2938aef8ee454930.png

Thanks for your help - This scales down the image and works, but it's not really what I was looking to achieve. It also seems to misalign the image, so it's no longer centred.

I don't want it scaled down to view the whole image, because then the illustrated text is quite small on mobile. I just want it scaled so that the words in the middle don't get cropped off - I figure there has to be some way to decrease the max height of the gallery page and have the image scale proportionally and stay centered? @bangank36

Edited by lulu.lindberg
Link to comment
  • 0
8 hours ago, lulu.lindberg said:

Thanks for your help - This scales down the image and works, but it's not really what I was looking to achieve. It also seems to misalign the image, so it's no longer centred.

I don't want it scaled down to view the whole image, because then the illustrated text is quite small on mobile. I just want it scaled so that the words in the middle don't get cropped off - I figure there has to be some way to decrease the max height of the gallery page and have the image scale proportionally and stay centered? @bangank36

Hope some other contributor can help you out

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...