fix: app width limit to 1024px
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
53b900901a
commit
09d77657a0
|
|
@ -9,6 +9,7 @@ import { useResizable } from "react-resizable-layout"
|
|||
import { Outlet } from "react-router-dom"
|
||||
|
||||
import { setMainContainerElement } from "~/atoms/dom"
|
||||
import { useViewport } from "~/atoms/hooks/viewport"
|
||||
import { getUISettings, setUISetting } from "~/atoms/settings/ui"
|
||||
import { setFeedColumnShow, useFeedColumnShow } from "~/atoms/sidebar"
|
||||
import { useLoginModalShow, useWhoami } from "~/atoms/user"
|
||||
|
|
@ -79,6 +80,24 @@ export function Component() {
|
|||
|
||||
useDailyTask()
|
||||
|
||||
const isNotSupportWidth = useViewport((v) => v.w < 1024)
|
||||
|
||||
if (isNotSupportWidth) {
|
||||
return (
|
||||
<div className="center fixed inset-0 flex-col">
|
||||
<i className="i-mingcute-device-line mb-2 size-16 text-muted-foreground" />
|
||||
<div>Please using desktop app to using {APP_NAME}</div>
|
||||
|
||||
<div>
|
||||
Download:{" "}
|
||||
<a className="follow-link--underline" href={repository.url}>
|
||||
{repository.url}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
className="flex h-screen overflow-hidden"
|
||||
|
|
|
|||
Loading…
Reference in New Issue