From 2a8b7c3e7975a1bc2df8b466c6014409df7529fe Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 21 Mar 2023 21:03:14 +0100 Subject: [PATCH] fixed #8124 - animation toggle didn't affect pane maximizing --- tabby-core/src/components/splitTab.component.scss | 4 ++++ tabby-core/src/services/themes.service.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tabby-core/src/components/splitTab.component.scss b/tabby-core/src/components/splitTab.component.scss index 90f49d65..04a71a99 100644 --- a/tabby-core/src/components/splitTab.component.scss +++ b/tabby-core/src/components/splitTab.component.scss @@ -24,3 +24,7 @@ border-radius: 10px; } } + +::ng-deep .no-animations split-tab > .child { + transition: none; +} diff --git a/tabby-core/src/services/themes.service.ts b/tabby-core/src/services/themes.service.ts index 5938eaa1..96b3ca8c 100644 --- a/tabby-core/src/services/themes.service.ts +++ b/tabby-core/src/services/themes.service.ts @@ -158,6 +158,8 @@ export class ThemesService { for (const [key, value] of Object.entries(vars)) { document.documentElement.style.setProperty(key, value) } + + document.body.classList.toggle('no-animations', !this.config.store.accessibility.animations) } findTheme (name: string): Theme|null {