Unexpected whitespace when embedding a base as a list

What I’m trying to do

I’m trying to embed a base in a note as a list. I use a filter based on this.fileto filter the base for all entry’s that have a link to the current file in a certain property. This works fine, but rendering short lists generates some unexpected whitespace below the list. This whitespace is not present in other views (e.g. table view). See image below.

Code used to generate the filtered list:

```base
filters: 
  and:
    - file.inFolder("folder-y")
    - note["property-x"].contains(this.file)
views:
  - type: list
    name: List
```

I’ve tested this with filtered lists of different lengths, and it seems the list + whitespace stays a consistent length until the list is 5 items long, from 6 items on the whitespace is gone and the list grows as normal.

Is there a way to make short embedded bases in list view show up without this whitespace?

Things I have tried

  • Different filtering methods: view is independent of the filter used.
  • I’ve tried different methods of generating the base (as a standalone view that I embed, as a codeblock inside the file). The whitespace is generated every time.
  • I’ve tried searching for a solution in the help pages, and on these forums. I did find a lot of questions about margins and whitespace, but nothing related to this particular case.

A short CSS snippet solved it:

/* Remove min-height from bases-list-container */

.bases-list-container {

  min-height: initial !important;

}

To remove the min-heigth setting: