mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-11 02:11: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>
21 lines
876 B
TypeScript
21 lines
876 B
TypeScript
import { useOnlineStatus } from '@/hooks/useOnlineStatus'
|
|
import { Spinner } from '@/components/Spinner'
|
|
import { useTranslation } from '@/lib/use-translation'
|
|
|
|
export function SyncingBanner({ isSyncing }: { isSyncing: boolean }) {
|
|
const { t } = useTranslation()
|
|
const isOnline = useOnlineStatus()
|
|
|
|
// Don't show syncing banner when offline (OfflineBanner takes precedence)
|
|
if (!isSyncing || !isOnline) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<div className="fixed top-0 left-0 right-0 bg-[var(--app-banner-bg)] text-[var(--app-banner-text)] text-center pb-2 pt-[calc(env(safe-area-inset-top)+0.5rem)] text-sm font-medium z-50 flex items-center justify-center gap-2 border-b border-[var(--app-divider)]">
|
|
<Spinner size="sm" label={null} className="text-[var(--app-banner-text)]" />
|
|
{t('syncing.title')}
|
|
</div>
|
|
)
|
|
}
|