Improve loading transition when searching packages

This commit is contained in:
Jonatan Kłosko 2024-02-09 01:38:38 +07:00
parent a74da2b3f5
commit de2d63ceb0

View file

@ -39,9 +39,10 @@ defmodule LivebookWeb.SessionLive.PackageSearchLive do
autofocus
/>
</form>
<div class={
"flex flex-col divide-y h-[20rem] pr-2 -mr-2 overflow-y-auto tiny-scrollbar #{if @search_ref, do: "opacity-75"}"
}>
<div class={[
"flex flex-col divide-y h-[20rem] pr-2 -mr-2 overflow-y-auto tiny-scrollbar",
if(@search_ref, do: "opacity-30 transition-opacity duration-300")
]}>
<%= cond do %>
<% @error_message -> %>
<div class="error-box">