mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 23:09:23 +08:00
Improve loading transition when searching packages
This commit is contained in:
parent
a74da2b3f5
commit
de2d63ceb0
1 changed files with 4 additions and 3 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue