mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-25 12:56:13 +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
|
autofocus
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
<div class={
|
<div class={[
|
||||||
"flex flex-col divide-y h-[20rem] pr-2 -mr-2 overflow-y-auto tiny-scrollbar #{if @search_ref, do: "opacity-75"}"
|
"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 %>
|
<%= cond do %>
|
||||||
<% @error_message -> %>
|
<% @error_message -> %>
|
||||||
<div class="error-box">
|
<div class="error-box">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue