Skip to content

Commit

Permalink
implement desktop view
Browse files Browse the repository at this point in the history
  • Loading branch information
mininxd authored Jan 26, 2024
1 parent 3277459 commit 85035ac
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export function fetchRepoList() {
return res.json();
})
.then((data) =>{
var totalRepo = data.length;
// var totalRepo = 30;

var totalRepo = data.length;
// var totalRepo = 5;
jQuery(document).ready(function ($) {
$('.fetchLoading').css("display","none")
for(let i = 0; i < totalRepo; i++) {
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@


<div id="repoListEl">
<div class="repoListContainer">
<div class="ui active centered fetchLoading inline text loader">Fetching Repo...</div>
<ul class="ui ulList">
</ul>
</div>
</div>

<a id="aHref">
Expand Down
44 changes: 42 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ p.desc {
.listBtnDiv {
position: relative;
display: flex;
top:20px;
top:18px;
justify-content: flex-end;
width: 100%;
padding-right: 1em;
Expand Down Expand Up @@ -152,7 +152,7 @@ a.btnLink:focus, a.btnLink:active, a.btnLink:hover {
}
.pseudoInfo {
position: static;
height: 20px;
height: 22px;
width: 100%;
background: var(--container-color-alt);
transform: translateY(20px);
Expand Down Expand Up @@ -181,4 +181,44 @@ div.infoMenu img {
.fetchLoading, .loader{
color: var(--primary-color);
transform: translateY(10em) !important;
}




/**DESKTOP**/
@media (min-width: 768px) and (max-width: 1024px) {
div.header {
padding-left: 4em;
padding-right: 4em;
}
h2.repoName {
overflow-x: scroll;
padding-left: 0.5em;
width: 95%;
border-radius: 20px 0 0 20px;
}
div.repoListContainer {
position: flex;
justify-content: center;
padding: 0 1em 0 1em;
width: 100%;
}
div.divList {
display: inline-block;
max-width: 24%;
}
p.desc {
overflow-y : scroll;
height: 40px;
max-height: 40px;
margin: 0;
}
div.infoMenu {
max-width: 300px;
word-wrap: break-all;
}
span.search{
opacity: 1;
}
}

0 comments on commit 85035ac

Please sign in to comment.