Horizontal scroll is appearing along with vertical

What I’m trying to do:
I’m trying to make a vertical scroll in repeating panel

What I’ve tried and what’s not working:
I’m able to make one, but it works fine in all screens except one. (horizontal scroll also appears along with it). It doesn’t look good

I want it to look like this

Code Sample:
I’ve added this role to the repeating panel

.anvil-role-scroll {
/*   width: 4100px; */
  overflow-y: scroll;
  flex-wrap: nowrap;
  min-width: min-content;
  overflow-x: auto;
  /* position: absolute; */
  position: relative;
  height: 20rem;
  direction: rtl;
}

Not really a CSS expert but maybe try setting overflow-x to hidden. You can also try adding the !important tag and see if it works after that.

1 Like

oh!, how did i miss this. Thank you @divyeshlakhotia

1 Like