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 {
@extend .widget;
padding: 12px 6px;
* {
transition: all cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
}
padding: 12px;
.workspace {
border-radius: 6px;
margin: 0px 6px;
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
border-radius: get-token(border-radius);
min-height: 16px;
&.current {
min-height: 48px;
background-color: $accent;
}
}
.workspacething {

View file

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