mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Move update indicator to titlebar on desktop.
This commit is contained in:
@@ -10,7 +10,6 @@ import Notifications from "../context/revoltjs/Notifications";
|
||||
import StateMonitor from "../context/revoltjs/StateMonitor";
|
||||
import SyncManager from "../context/revoltjs/SyncManager";
|
||||
|
||||
import { USE_TITLEBAR } from "../components/native/Titlebar";
|
||||
import BottomNavigation from "../components/navigation/BottomNavigation";
|
||||
import LeftSidebar from "../components/navigation/LeftSidebar";
|
||||
import RightSidebar from "../components/navigation/RightSidebar";
|
||||
@@ -47,7 +46,7 @@ export default function App() {
|
||||
<OverlappingPanels
|
||||
width="100vw"
|
||||
height={
|
||||
USE_TITLEBAR
|
||||
window.isNative && !window.native.getConfig().frame
|
||||
? "calc(var(--app-height) - var(--titlebar-height))"
|
||||
: "var(--app-height)"
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { CheckAuth } from "../context/revoltjs/CheckAuth";
|
||||
import Masks from "../components/ui/Masks";
|
||||
import Preloader from "../components/ui/Preloader";
|
||||
|
||||
import { Titlebar, USE_TITLEBAR } from "../components/native/Titlebar";
|
||||
import { Titlebar } from "../components/native/Titlebar";
|
||||
|
||||
const Login = lazy(() => import("./login/Login"));
|
||||
const RevoltApp = lazy(() => import("./RevoltApp"));
|
||||
@@ -17,7 +17,9 @@ export function App() {
|
||||
return (
|
||||
<Context>
|
||||
<Masks />
|
||||
{USE_TITLEBAR && <Titlebar />}
|
||||
{window.isNative && !window.native.getConfig().frame && (
|
||||
<Titlebar />
|
||||
)}
|
||||
{/*
|
||||
// @ts-expect-error */}
|
||||
<Suspense fallback={<Preloader type="spinner" />}>
|
||||
|
||||
@@ -33,7 +33,7 @@ export default function HeaderActions({
|
||||
|
||||
return (
|
||||
<>
|
||||
<UpdateIndicator />
|
||||
<UpdateIndicator style="channel" />
|
||||
{channel.channel_type === "Group" && (
|
||||
<>
|
||||
<IconButton
|
||||
|
||||
Reference in New Issue
Block a user