fix: eww workspaces animation bug

This commit is contained in:
hesam-init 2024-07-01 19:28:11 +03:30
parent bf192aa43f
commit b1b23e5257
3 changed files with 11 additions and 17 deletions

View file

@ -21,15 +21,17 @@
.workspaces { .workspaces {
@extend .widget; @extend .widget;
padding: 12px 6px; padding: 12px;
* {
transition: all cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
}
.workspace { .workspace {
border-radius: 6px; transition: cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
margin: 0px 6px; border-radius: get-token(border-radius);
min-height: 16px;
&.current {
min-height: 48px;
background-color: $accent;
}
} }
.workspacething { .workspacething {

View file

@ -10,19 +10,11 @@
:space-evenly false :space-evenly false
:orientation "v" :orientation "v"
:spacing spacing-default :spacing spacing-default
:vexpand true
(for workspace in {workspacesJson} (for workspace in {workspacesJson}
(button (button
:onclick "hyprctl dispatch workspace ${workspace.id}" :onclick "hyprctl dispatch workspace ${workspace.id}"
(box (box
:height 20 :class "workspace ${workspace.id == currentWorkspace ? "current" : "workspacething"}"))))))
:class "workspace ${workspace.id == currentWorkspace ? "workspacethingactive" : "workspacething"}"
(revealer
:reveal { workspace.id == currentWorkspace}
:transition "slidedown"
:duration animation-duration-default
(box
:height 40))))))))