Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where the Asset Selector's bottom padding wasn't showing due to h-full being applied to the AssetBrowser component.

This PR fixes it by only applying the h-full class on the page that needs it.

Closes #13730

@jasonvarga
Copy link
Member

This PR fixes it by only applying the h-full class on the page that needs it.

Does that page even need it though? If I remove it, it still looks fine.

@robdekort
Copy link
Contributor

This PR fixes it by only applying the h-full class on the page that needs it.

Does that page even need it though? If I remove it, it still looks fine.

Could it be that this was added a while back to fix the drop targets for when dragging an asset to upload it?

@robdekort
Copy link
Contributor

Yeah, I think it was: https://github.com/statamic/cms/pull/13361/changes

Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @robdekort. In that case, this PR breaks that.

  • We need the h-full on Browse.vue - Don't remove it, contrary to what I suggested.
  • When you have the asset fieldtype stack open, when you drag a file over the stack on blank space under the listing, you would get the drop zone. Now with this PR, you dont.

The Panel has its own padding bottom, but we need `pb-1` here for it to show.
@jasonvarga jasonvarga merged commit f6705f5 into 6.x Jan 30, 2026
11 checks passed
@jasonvarga jasonvarga deleted the asset-selector-padding branch January 30, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some missing padding with an asset browser opened in a stack

4 participants