Skip to content

Commit

Permalink
fix: remove min-height resulting in problems with "no items found"
Browse files Browse the repository at this point in the history
  • Loading branch information
m-risto committed Sep 18, 2024
1 parent 95df476 commit 95f26b8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
autoPlacement,
autoUpdate,
computePosition,
flip,
offset,
size,
} from '@floating-ui/dom';
Expand All @@ -24,7 +23,7 @@ import { getVirtualElement } from '../../util/get-virtual-element.util';
selector: 'bna-suggestions-menu-controller',
standalone: true,
host: {
class: 'z-30 fixed flex min-h-[300px]',
class: 'z-30 fixed flex',
},
template: `@if (show()) {
<ng-content />
Expand Down Expand Up @@ -79,7 +78,7 @@ export class BnaSuggestionsMenuControllerComponent implements OnDestroy {
placement: 'bottom-start',
middleware: [
offset(10),
flip(),
autoPlacement({ allowedPlacements: ['bottom-start', 'top-start'] }),
size({
apply: ({ availableHeight }) => {
this.renderer2.setStyle(
Expand Down

0 comments on commit 95f26b8

Please sign in to comment.