diff --git a/webui/src/App.tsx b/webui/src/App.tsx
index 4c81913cbdd5b346f62f64830ae34854af22a2d0..e0580b1df6fbd7ec7e3051996cbf6a36c9d30a0e 100644
--- a/webui/src/App.tsx
+++ b/webui/src/App.tsx
@@ -13,6 +13,7 @@ export default function App() {
+
diff --git a/webui/src/pages/bug/Bug.tsx b/webui/src/pages/bug/Bug.tsx
index b8c3e8aae62c05b260bce40a4472300cf30a71ce..8b537fb8cef5f5035e6ba8a8cdaf4f623a5f5caf 100644
--- a/webui/src/pages/bug/Bug.tsx
+++ b/webui/src/pages/bug/Bug.tsx
@@ -17,13 +17,20 @@ import TimelineQuery from './TimelineQuery';
*/
const useStyles = makeStyles((theme) => ({
main: {
- maxWidth: 1000,
+ maxWidth: 1200,
margin: 'auto',
marginTop: theme.spacing(4),
},
header: {
- marginLeft: theme.spacing(3) + 40,
marginRight: theme.spacing(2),
+ marginLeft: theme.spacing(3) + 205,
+ },
+ title: {
+ ...theme.typography.h5,
+ },
+ id: {
+ ...theme.typography.subtitle1,
+ marginLeft: theme.spacing(1),
},
container: {
display: 'flex',
@@ -37,11 +44,15 @@ const useStyles = makeStyles((theme) => ({
marginRight: theme.spacing(2),
minWidth: 400,
},
- sidebar: {
+ leftSidebar: {
+ marginTop: theme.spacing(2),
+ marginRight: theme.spacing(2),
+ },
+ rightSidebar: {
marginTop: theme.spacing(2),
flex: '0 0 200px',
},
- sidebarTitle: {
+ rightSidebarTitle: {
fontWeight: 'bold',
},
labelList: {
@@ -64,7 +75,6 @@ const useStyles = makeStyles((theme) => ({
},
backButton: {
position: 'sticky',
- marginTop: theme.spacing(1),
top: '80px',
backgroundColor: '#574142',
color: '#fff',
@@ -86,8 +96,18 @@ function Bug({ bug }: Props) {
-
+
@@ -98,8 +118,8 @@ function Bug({ bug }: Props) {
)}
-
-
Labels
+
+
Labels
{bug.labels.length === 0 && (
None yet
@@ -110,15 +130,6 @@ function Bug({ bug }: Props) {
))}
-
diff --git a/webui/src/pages/bug/BugQuery.tsx b/webui/src/pages/bug/BugQuery.tsx
index 2a70a2f84f676f29c72837a028cc96f5c9e117b6..ade64e9d015600dfb8498f753e64ed3729475c1e 100644
--- a/webui/src/pages/bug/BugQuery.tsx
+++ b/webui/src/pages/bug/BugQuery.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { RouteComponentProps } from 'react-router-dom';
+import { Redirect, RouteComponentProps } from 'react-router-dom';
import CircularProgress from '@material-ui/core/CircularProgress';
@@ -15,8 +15,8 @@ const BugQuery: React.FC
= ({ match }: Props) => {
variables: { id: match.params.id },
});
if (loading) return ;
+ if (!data?.repository?.bug) return ;
if (error) return Error: {error}
;
- if (!data?.repository?.bug) return 404.
;
return ;
};