Neo-Zhixing / vkdoc.net

Better Vulkan Documentation starts here
https://vkdoc.net
MIT License
18 stars 1 forks source link

fix search bar height bug #1

Closed EdwardLab closed 6 months ago

EdwardLab commented 6 months ago

Before: before After: after

Fixed search bar height bug if few search results

Teages commented 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,
}"