sidebar: faster anims

This commit is contained in:
end-4
2024-02-16 16:42:13 +07:00
parent dd50aef605
commit 0490bc9749
2 changed files with 3 additions and 0 deletions
@@ -161,6 +161,7 @@ const textboxArea = Box({ // Entry area
const apiContentStack = Stack({
vexpand: true,
transition: 'slide_left_right',
transitionDuration: 160,
children: APIS.reduce((acc, api) => {
acc[api.name] = api.contentWidget;
return acc;
@@ -169,6 +170,7 @@ const apiContentStack = Stack({
const apiCommandStack = Stack({
transition: 'slide_up_down',
transitionDuration: 160,
children: APIS.reduce((acc, api) => {
acc[api.name] = api.commandBar;
return acc;
+1
View File
@@ -30,6 +30,7 @@ let currentTabId = 0;
export const contentStack = Stack({
vexpand: true,
transition: 'slide_left_right',
transitionDuration: 160,
children: contents.reduce((acc, item) => {
acc[item.name] = item.content;
return acc;