Skip to content

Commit

Permalink
feat(web): forbidden native scale
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 5, 2024
1 parent 9633889 commit 77613d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/web/app/layouts/Sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const SidebarContent = memo(() => {
<div className="mt-[8px] px2 py1 text-base-700 select-none font-500 font-quicksand flex items-center">
<div className="block">
<span className="i-carbon:bookmark text-sm relative top-[2px] mr1"></span>
<span className="text-sm">收藏夹</span>
<span className="text-sm font-bold">收藏夹</span>
</div>
<div className="flex-auto"></div>
<div
Expand Down Expand Up @@ -361,7 +361,7 @@ const CollectionItemContent = memo((props: { collection: Collection; item: Colle
e.preventDefault();
e.stopPropagation();
window.open(`/resources/1${item.searchParams}`);
console.log('open', e)
console.log('open', e);
}}
>
<span className="i-ant-design:link-outlined mr1"></span>
Expand Down
11 changes: 8 additions & 3 deletions apps/frontend/web/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ export function Layout({ children }: { children: React.ReactNode }) {
useEffect(() => {
setIsClient(true);
});

return (
<html lang="zh-CN">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"
/>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" sizes="64x64" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png" />
Expand All @@ -40,7 +43,9 @@ export function Layout({ children }: { children: React.ReactNode }) {
suppressHydrationWarning={true}
>
<div
className={"page-overlay absolute w-full h-full bg-white z-9999 " + (isClient ? 'hidden' : '')}
className={
'page-overlay absolute w-full h-full bg-white z-9999 ' + (isClient ? 'hidden' : '')
}
suppressHydrationWarning={true}
></div>
<Provider>{children}</Provider>
Expand Down

0 comments on commit 77613d6

Please sign in to comment.