mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-30 11:12:36 -04:00
Split layouts
This commit is contained in:
15
src/renderer/layouts/auth/AuthLayout.module.scss
Normal file
15
src/renderer/layouts/auth/AuthLayout.module.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
.container {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.window {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
z-index: 1000;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
16
src/renderer/layouts/auth/AuthLayout.tsx
Normal file
16
src/renderer/layouts/auth/AuthLayout.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Outlet } from 'react-router-dom';
|
||||
|
||||
import styles from './AuthLayout.module.scss';
|
||||
|
||||
const AuthLayout = () => {
|
||||
return (
|
||||
<>
|
||||
<div className={styles.window} />
|
||||
<div className={styles.container}>
|
||||
<Outlet />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default AuthLayout;
|
||||
@@ -1 +1,3 @@
|
||||
export { default as AuthLayout } from './auth/AuthLayout';
|
||||
export { default as DefaultLayout } from './default/DefaultLayout';
|
||||
export { default as WindowLayout } from './window/WindowLayout';
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
.window {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
height: 50px;
|
||||
z-index: 100;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.group {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
@@ -20,7 +20,6 @@ const WindowLayout = ({ style }: WindowControlsProps) => {
|
||||
<>
|
||||
{isElectron() && (
|
||||
<>
|
||||
<div className={styles.window} />
|
||||
{style === 'windows' && (
|
||||
<>
|
||||
<div className={styles.group}>
|
||||
|
||||
Reference in New Issue
Block a user