mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
* fix codex session import merge (#1123) 修复 Codex 会话导入合并后列表为空的问题。 Fix Codex session import merge so a session is not detected as a duplicate of itself and deleted during merge. Co-authored-by: LIUZHIRU <ryuu@fine-net.co.jp> * fix(web): keep overlays below PWA status bar Account for env(safe-area-inset-top) on fixed top banners, image preview chrome, and session action menus so installed PWA mode no longer draws controls under the OS status bar. Fixes #1066 --------- Co-authored-by: Himehane <36065996+Himehane@users.noreply.github.com> Co-authored-by: LIUZHIRU <ryuu@fine-net.co.jp>
18 lines
503 B
TypeScript
18 lines
503 B
TypeScript
import { useOnlineStatus } from '@/hooks/useOnlineStatus'
|
|
import { useTranslation } from '@/lib/use-translation'
|
|
|
|
export function OfflineBanner() {
|
|
const { t } = useTranslation()
|
|
const isOnline = useOnlineStatus()
|
|
|
|
if (isOnline) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<div className="fixed top-0 left-0 right-0 bg-amber-500 text-white text-center pb-2 pt-[calc(env(safe-area-inset-top)+0.5rem)] text-sm font-medium z-50">
|
|
{t('offline.message')}
|
|
</div>
|
|
)
|
|
}
|