web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can I show a horizonta...
Power Apps
Unanswered

Can I show a horizontal gallery header and data on 2 lines when viewed on small sized screens

(1) ShareShare
ReportReport
Posted on by 2,015 Season of Giving Solutions 2025

I have this horizontal gallery which contain 10 items each which have Width = Parent.Width*0.1 :-

 

johnjohnPter_1-1701170637246.png

 

 

and above the gallery we have a set of 10 labels with Width = Parent.Width*0.1, as follow:-

 

johnjohnPter_0-1701170573431.png

 

now on small sized screens the labels looks not very user friendly, as follow:-

 

johnjohnPter_2-1701170775116.png

 

so i am thinking if there is a way to divide the header labels & the gallery items into 2 lines when viewed on small sized screen? is this possible? so the headers will be as follow and the gallery items as well:-

 

johnjohnPter_3-1701170931283.png

 

 

any advice ? or if there is a better way to manage this on small sized screens?

 

Thanks

 

Categories:
I have the same question (0)
  • M_Ali_SZ365 Profile Picture
    1,110 on at

    Hi @johnjohnPter ,

    Try This And Let Me Know

    Write this Code Width property of your labels and gallery items:

    Width = If(App.Width < 640, Parent.Width * 0.2, Parent.Width * 0.1)

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

     

  • johnjohnPter Profile Picture
    2,015 Season of Giving Solutions 2025 on at

    @M_Ali_SZ365 this will show a horizontal scroll bar to view the items on small sized screens.. this will not divide the items on 2 lines.

  • M_Ali_SZ365 Profile Picture
    1,110 on at

    @johnjohnPter ,

    Try This

    Set WrapCount of the gallery to adjust the number of items per line based on screen size:

    WrapCount = If(App.Width < 640, 5, 10)

    For headers, duplicate labels for the second line and set Visible property based on screen width:

    Visible = App.Width < 640

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

  • johnjohnPter Profile Picture
    2,015 Season of Giving Solutions 2025 on at

    @M_Ali_SZ365 i have the wrap count = 1 ,, setting your formula:-

     

    WrapCount = If(App.Width < 640, 5, 10)

     

    will corrupt the layout... also i do not want to duplicate the headers each line will have different labels... bot sure we are talking about the same issue..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard