settings: fix broken view on background screen rotation

This commit is contained in:
DH
2025-08-24 17:40:55 +03:00
parent ae2a885272
commit 00734c6f87

View File

@@ -1370,7 +1370,6 @@ export function Settings(_props?: Props) {
const showContent = (!shortView || showContentView) && activeTab >= 0;
const showCategories = !showContentView || !shortView;
useEffect(() => {
if (currentShortView != shortView) {
if (!shortView) {
@@ -1382,9 +1381,7 @@ export function Settings(_props?: Props) {
if ((!shortView || !currentShortView) && activeTab < 0) {
setActiveTab(0);
}
}, [insets]);
useEffect(() => {
const backAction = () => {
if (shortView && showContent) {
onContentBack();