chore: fix table view layout on tablet-size screens
This commit is contained in:
@@ -6,13 +6,9 @@ import { getIsTabletOrMobileScreen } from '@/Hooks/useIsTabletOrMobileScreen'
|
|||||||
export function panesForLayout(layout: PaneLayout, application: WebApplication): AppPaneId[] {
|
export function panesForLayout(layout: PaneLayout, application: WebApplication): AppPaneId[] {
|
||||||
const screen = getIsTabletOrMobileScreen(application)
|
const screen = getIsTabletOrMobileScreen(application)
|
||||||
if (screen.isTablet) {
|
if (screen.isTablet) {
|
||||||
if (layout === PaneLayout.TagSelection) {
|
if (layout === PaneLayout.TagSelection || layout === PaneLayout.TableView) {
|
||||||
return [AppPaneId.Navigation, AppPaneId.Items]
|
return [AppPaneId.Navigation, AppPaneId.Items]
|
||||||
} else if (
|
} else if (layout === PaneLayout.ItemSelection || layout === PaneLayout.Editing) {
|
||||||
layout === PaneLayout.ItemSelection ||
|
|
||||||
layout === PaneLayout.Editing ||
|
|
||||||
layout === PaneLayout.TableView
|
|
||||||
) {
|
|
||||||
return [AppPaneId.Items, AppPaneId.Editor]
|
return [AppPaneId.Items, AppPaneId.Editor]
|
||||||
}
|
}
|
||||||
} else if (screen.isMobile) {
|
} else if (screen.isMobile) {
|
||||||
|
|||||||
Reference in New Issue
Block a user