Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide list of matches if there are no children? #133

Open
stefanwatt opened this issue Feb 14, 2024 · 0 comments
Open

How to hide list of matches if there are no children? #133

stefanwatt opened this issue Feb 14, 2024 · 0 comments

Comments

@stefanwatt
Copy link

stefanwatt commented Feb 14, 2024

Trying to have the result list and the prompt in a separated layout like this:
image
It works fine as long as there's some results to display but looks stupid when i first open anyrun:
image
As you can see the empty result list with it's border is still displayed below the prompt.

I tried using pseudoclasses to hide list#main like so:

list#main:empty {
  border: none;
  background-color: rgba(0, 0, 0, 0);
}

but without success. Seems like when I use an unsupported keyword the app goes back to it's default styling.

Would be nice to have a way to conditionally hide the list.

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

No branches or pull requests

1 participant