Closed EdwardLab closed 6 months ago
I think you just need to replace grid
to flex flex-col
on line 118. Changes on other line seems not necessary.
If you want to keep those, I suggest to use tailwindcss and class binding. you can:
on line 119
:class="{
'pb-2': result.length <= 2,
}"
on line 125
:class="{
'max-h-16': result.length <= 2,
}"
Before:
After:
![after](https://github.com/Neo-Zhixing/vkdoc.net/assets/39870096/f14d4850-488d-4577-94e4-8fe4ef58722d)
Fixed search bar height bug if few search results