Move update indicator to titlebar on desktop.

This commit is contained in:
Paul
2021-08-01 17:52:44 +01:00
parent c32826e157
commit 4d194ba31a
6 changed files with 32 additions and 27 deletions

View File

@@ -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)"
}

View File

@@ -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" />}>

View File

@@ -33,7 +33,7 @@ export default function HeaderActions({
return (
<>
<UpdateIndicator />
<UpdateIndicator style="channel" />
{channel.channel_type === "Group" && (
<>
<IconButton