Skip to content

Commit

Permalink
Fix layout issues
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsmid committed Aug 18, 2020
1 parent dc4a857 commit 7b586a5
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 142 deletions.
2 changes: 1 addition & 1 deletion desktop/public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function onAppReady() {
mainWindow = null
});

mainWindow.webContents.openDevTools();
// mainWindow.webContents.openDevTools();

global.mainWindow = mainWindow;

Expand Down
2 changes: 1 addition & 1 deletion desktop/src/components/navBar/menu.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
position: sticky
top: 0
z-index: 2000
width: 100vw
width: 100%
height: $navigation-bar-height
min-height: $navigation-bar-height
color: white
Expand Down
3 changes: 1 addition & 2 deletions desktop/src/entry/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {useState} from 'react';
import './App.sass';
import {BrowserRouter as Router, Switch, Route, Redirect, useLocation} from 'react-router-dom';
import {BrowserRouter as Router, Switch, Route, useLocation} from 'react-router-dom';
import routes from '../routes';
import NavigationBar from '../components/navBar/NavigationBar';

Expand All @@ -17,7 +17,6 @@ function App() {
<LocationListener onChange={onLocationChange} />
<NavigationBar currentPath={currentPath} />
<Switch className="switch">
<Route exact path="/" render={() => <Redirect to="/twitch" />} />
{routes.map(route => (
<Route key={route.title} exact path={route.path} component={route.component} />
))}
Expand Down
2 changes: 2 additions & 0 deletions desktop/src/entry/App.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@import "../util/sass-variables";

.app
position: relative
width: 100vw
min-width: $app-min-width
height: 100vh
background-color: $app-background-color
color: $app-text-color
Expand Down
276 changes: 141 additions & 135 deletions desktop/src/pages/twitch/TwitchPage.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions desktop/src/pages/twitch/TwitchPage.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
$table-cell-width: 100px

.page
padding: 10px
width: 100%
min-width: $app-min-width
background-color: $app-background-color

.page-content
padding: 10px

.authenticated-actions
button
Expand Down Expand Up @@ -65,7 +70,7 @@ $table-cell-width: 100px

.modal
position: relative
width: 600px
width: 550px
min-height: 300px
max-height: 600px
overflow-x: hidden
Expand Down
3 changes: 2 additions & 1 deletion desktop/src/util/sass-variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ $navigation-bar-color: #688f68
$navigation-bar-height: 50px

$app-background-color: #282c34
$app-text-color: #8Ea368
$app-text-color: #8Ea368
$app-min-width: 700px

0 comments on commit 7b586a5

Please sign in to comment.