fix: layout fixes

pull/99/head
corpulent 3 years ago
parent 17e8deff52
commit 6d65534752

@ -640,7 +640,7 @@ export default function Project(props: IProjectProps) {
flexDirection: "column", flexDirection: "column",
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
minHeight: "calc(100vh - 120px)" minHeight: "calc(60vh - 120px)"
}} }}
> >
<h3 className="text-2xl font-medium text-gray-900"> <h3 className="text-2xl font-medium text-gray-900">

@ -113,7 +113,7 @@ const Projects = () => {
flexDirection: "column", flexDirection: "column",
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
minHeight: "calc(100vh - 120px)" minHeight: "calc(60vh - 120px)"
}} }}
> >
<h3 className="mt-2 text-sm font-medium text-gray-900"> <h3 className="mt-2 text-sm font-medium text-gray-900">
@ -122,7 +122,11 @@ const Projects = () => {
<p className="mt-1 text-sm text-gray-500"> <p className="mt-1 text-sm text-gray-500">
Get started by creating a new project. Get started by creating a new project.
</p> </p>
<div className="mt-6"> <div className="flex flex-col md:flex-row mt-6 items-center space-y-2 md:space-y-0 space-x-2">
<button onClick={onImportClick} className="btn-util">
<span>Import</span>
</button>
<Link to="/projects/new" className="btn-util"> <Link to="/projects/new" className="btn-util">
<span className="flex space-x-1 items-center"> <span className="flex space-x-1 items-center">
<PlusIcon <PlusIcon

@ -44,7 +44,7 @@ export default function SideBar(props: ISideBarProps) {
</div> </div>
<div className="md:mt-5 flex-1 flex flex-col items-center sm:flex-row md:flex-col justify-end"> <div className="md:mt-5 flex-1 flex flex-col items-center sm:flex-row md:flex-col justify-end">
<nav className="flex md:flex-1 md:flex-col items-center md:space-y-1"> <nav className="flex md:flex-1 flex-col sm:flex-row md:flex-col items-center md:space-y-1">
{navigation.map((item) => { {navigation.map((item) => {
if (item.visible) { if (item.visible) {
return ( return (

@ -106,7 +106,8 @@ export const useProject = (uuid: string | undefined) => {
return (await axios(requestConfig)).data; return (await axios(requestConfig)).data;
}, },
{ {
staleTime: Infinity staleTime: Infinity,
retry: 1
} }
); );
}; };

Loading…
Cancel
Save