Skip to content
Snippets Groups Projects
Commit 922215ac authored by Andreas Rystad's avatar Andreas Rystad
Browse files

Update styling

parent 4664214a
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
border-bottom: solid 1px #EB753C; border-bottom: solid 1px #EB753C;
overflow: auto;
} }
.SingleCommit{ .SingleCommit{
...@@ -59,7 +60,6 @@ ...@@ -59,7 +60,6 @@
text-align: center; text-align: center;
width: 75%; width: 75%;
display:inline-block; display:inline-block;
overflow: auto;
} }
...@@ -73,14 +73,15 @@ ...@@ -73,14 +73,15 @@
background-color: #d1e6ee; background-color: #d1e6ee;
border-radius: 10px; border-radius: 10px;
padding: 2.5% 0; padding: 2.5% 0;
/*overflow-x: scroll;*/ width: 100%;
} }
body{ body{
width: 80%; width: 80%;
margin-left: 5%; margin-left: 10%;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
} }
......
...@@ -54,6 +54,7 @@ const CommitComponent = (props: commitProps) => { ...@@ -54,6 +54,7 @@ const CommitComponent = (props: commitProps) => {
<div> <div>
<ul className={style.UlList}> <ul className={style.UlList}>
{commitList} {commitList}
{commitList?.length===0?<li>Opps! Too far, go back!</li>:<></>}
</ul> </ul>
</div> </div>
); );
......
...@@ -52,7 +52,6 @@ const CommitPageWrapper = () => { ...@@ -52,7 +52,6 @@ const CommitPageWrapper = () => {
width={100} width={100}
timeout={10000} //3 secs timeout={10000} //3 secs
/></div> : <CommitComponent commits={data as Commit[]}/>} /></div> : <CommitComponent commits={data as Commit[]}/>}
{(data as Commit[])?.length === 0 ? <p>Opps! There are no more commits, go back!</p> : <></>}
</div> </div>
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment