Skip to content

Commit

Permalink
table fixed for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
GMILLA92 committed Jun 20, 2024
1 parent f64bc3a commit ec521c4
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 13 deletions.
12 changes: 7 additions & 5 deletions frontend/src/components/Dataset/BeaconInfo.css
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ h5 {
}
.tittle {
height: 82px;
width: 44vw;
width: 40vw;
background: #c8d4e6;
border-radius: 2px;
/* height: 80px; */
Expand Down Expand Up @@ -546,14 +546,16 @@ h5 {
margin-top: 2px;
}
.datasetCard p {
font-size: 11px;
font-weight: normal;
color: rgb(61 60 60);
line-height: 18px;
line-height: 20px;
margin-top: -5px;
font-size: 11px !important;
width: 52vw;
text-align: justify;
height: 150px;
overflow-y: scroll;
font-size: 13px;
}

.datasetCard {
width: 58vw;
margin: 30px;
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/components/NavBar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -861,16 +861,17 @@
}

.Sign-in5 {
width: 124px;
height: 25px;
margin-bottom: 10px;
width: 123px;
height: 21px;
margin-top: 2px;
/* margin-left: 2px; */
border-radius: 4px;
display: flex;
background-color: #7a9f9f;
align-items: center;
justify-content: center;
}
}

.Runs2 {
width: 157px;
Expand Down Expand Up @@ -985,7 +986,7 @@
}
.menuNav2 {
background-color: #235c94;
height: 119px;
height: fit-content;
width: 126px;
margin-top: 22px;
border-radius: 9px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
.table-container {
overflow-x: auto;
width: 100%;
min-width: 900px;
height: fit-content;
position: relative;
min-width: 1000px;
overflow-y: scroll;
overflow-x: scroll;
display: flex;
Expand Down Expand Up @@ -170,7 +170,11 @@ thead {
position: sticky;
top: 0;
z-index: 2;
width: 100%;
/* width: 100vw; */

/* align-items: center; */
/* justify-content: center; */
/* align-content: center; */
}

.body-container {
Expand Down Expand Up @@ -207,7 +211,7 @@ thead {
font-size: 14px;
font-family: sans-serif;
/* padding: 8px; */

display: flex;
align-items: center;
width: 328px;
Expand Down Expand Up @@ -327,7 +331,6 @@ tr {
/* align-items: center; */
align-content: center;
/* justify-content: flex-start; */

}

.tdGranuNoResults,
Expand Down Expand Up @@ -727,6 +730,43 @@ h1 {
margin-bottom: 2px;
}
}
@media (max-width: 1000px) {
.tableResults {
/* width: 96%; */
overflow-x: scroll;
border-collapse: collapse;
table-layout: fixed;
margin-left: 14px;
}

.containerTableResults {
width: 100vw;
display: flex;
align-content: start;
justify-content: start;
align-items: start;
}

.containerBeaconResults {
display: flex;
flex-direction: column;
justify-content: flex-start;
/* margin-right: 26px; */
width: 100vw;
align-content: flex-start;
flex-wrap: wrap;
margin-left: 10px;
padding-bottom: 50px;
margin-right: 10px;
margin-top: 24px;
align-items: flex-start;
overflow: scroll;
}

tr {
width: 100%;
}
}

@media (max-width: 800px) {
.tdGranuBeacon {
Expand Down

0 comments on commit ec521c4

Please sign in to comment.