Skip to content

Commit

Permalink
add scrollbar heights
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadtrad committed Sep 1, 2020
1 parent 6d784f3 commit 6b83cb3
Show file tree
Hide file tree
Showing 9 changed files with 171 additions and 47 deletions.
26 changes: 18 additions & 8 deletions frontend/assets/stylesheets/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ input *:focus {
}

#data-table {
overflow: auto;
overflow-y: auto;
height: 300px;
}

Expand All @@ -98,15 +98,25 @@ input *:focus {
padding: 15px 0;
}

#data-table::-webkit-scrollbar-track {
background: #c6d2d5;
.input-schema-button {
width: 120px;
margin-bottom: 30px;
}

#data-table::-webkit-scrollbar-thumb {
background-color: #444c50;
/* width */
::-webkit-scrollbar {
width: 15px;
}

.input-schema-button {
width: 120px;
margin-bottom: 30px;
/* Track */
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0px 0px 5px grey;
box-shadow: inset 0px 0px 5px grey;
border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #c6d2d5;
border-radius: 15px;
}
28 changes: 26 additions & 2 deletions frontend/assets/stylesheets/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}

#history-panel {
height: 50%;
height: 350px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
Expand All @@ -111,6 +111,18 @@
flex-direction: column;
}

.history-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 300px;
overflow-y: auto;
}

#compare-panel {
display: -webkit-box;
display: -ms-flexbox;
Expand Down Expand Up @@ -169,7 +181,7 @@
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 50%;
height: 500px;
z-index: 1000;
}

Expand Down Expand Up @@ -211,3 +223,15 @@
-ms-flex-direction: column;
flex-direction: column;
}

.results-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 350px;
overflow-y: auto;
}
82 changes: 64 additions & 18 deletions frontend/assets/stylesheets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ input *:focus {
}

#data-table {
overflow: auto;
overflow-y: auto;
height: 300px;
}

Expand All @@ -104,17 +104,27 @@ input *:focus {
padding: 15px 0;
}

#data-table::-webkit-scrollbar-track {
background: #c6d2d5;
.input-schema-button {
width: 120px;
margin-bottom: 30px;
}

#data-table::-webkit-scrollbar-thumb {
background-color: #444c50;
/* width */
::-webkit-scrollbar {
width: 15px;
}

.input-schema-button {
width: 120px;
margin-bottom: 30px;
/* Track */
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0px 0px 5px grey;
box-shadow: inset 0px 0px 5px grey;
border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #c6d2d5;
border-radius: 15px;
}

#splash-page {
Expand Down Expand Up @@ -218,14 +228,26 @@ input *:focus {
}

#history-panel {
height: 50%;
height: 350px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}

.history-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 300px;
overflow-y: auto;
}

#compare-panel {
Expand Down Expand Up @@ -286,7 +308,7 @@ input *:focus {
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 50%;
height: 500px;
z-index: 1000;
}

Expand Down Expand Up @@ -329,6 +351,18 @@ input *:focus {
flex-direction: column;
}

.results-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 350px;
overflow-y: auto;
}

.modal {
width: 615px;
height: 700px;
Expand Down Expand Up @@ -427,23 +461,35 @@ h4 {
font-size: 18px;
}

.compare-box {
border: 0.5px solid #444c50;
background: none;
overflow: scroll;
padding: 5px;
font-size: 14px;
line-height: 1.5em;
#compare-panel {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin-top: 30px;
}

#compare-panel {
.compare-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
overflow-y: auto;
height: 300px;
}

.compare-box {
border: 0.5px solid #444c50;
background: none;
padding: 5px;
font-size: 14px;
line-height: 1.5em;
}

#add-query-button {
Expand Down
26 changes: 19 additions & 7 deletions frontend/assets/stylesheets/scss/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ input {
}
}
#data-table {
overflow: auto;
overflow-y: auto;
height: 300px;
}
.query-data {
Expand All @@ -90,13 +90,25 @@ input {
#codemirror {
padding: 15px 0;
}
#data-table::-webkit-scrollbar-track {
background: $primary-color-darkmode;
}
#data-table::-webkit-scrollbar-thumb {
background-color: $border-darkmode;
}

.input-schema-button {
width: 120px;
margin-bottom: 30px;
}

/* width */
::-webkit-scrollbar {
width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
box-shadow: inset 0px 0px 5px grey;
border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: $primary-color-darkmode;
border-radius: 15px;
}
18 changes: 16 additions & 2 deletions frontend/assets/stylesheets/scss/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,18 @@
background-color: $background-darkmode-darker;
}
#history-panel {
height: 50%;
height: 350px;
display: flex;
flex-direction: column;
}

.history-container{
display: flex;
flex-direction: column;
height: 300px;
overflow-y: auto;
}

#compare-panel {
display: flex;
flex-grow: 1;
Expand Down Expand Up @@ -99,7 +106,7 @@
#query-panel {
display: flex;
flex-direction: column;
height: 50%;
height: 500px;
z-index: 1000;
}
#data-panel {
Expand All @@ -120,3 +127,10 @@
flex-grow: 1;
flex-direction: column;
}

.results-container{
display:flex;
flex-direction: column;
height: 350px;
overflow-y: auto;
}
30 changes: 21 additions & 9 deletions frontend/assets/stylesheets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,36 @@ h4 {
font-size: 18px;
}

.compare-box {
border: 0.5px solid #444c50;
background: none;
overflow: scroll;
padding: 5px;
font-size: 14px;
line-height: 1.5em;
#compare-panel {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin-top: 30px;
}

#compare-panel {
.compare-container{
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
overflow-y: auto;
height: 300px;
}

.compare-box {
border: 0.5px solid #444c50;
background: none;
padding: 5px;
font-size: 14px;
line-height: 1.5em;
}

#add-query-button {
width: 120px;
Expand Down Expand Up @@ -95,4 +106,5 @@ h4 {
.queryItem:hover {
background-color:#c6d2d5;
color: #30353a;
}
}

4 changes: 3 additions & 1 deletion frontend/components/leftPanel/Compare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ export const Compare = (props: CompareProps) => {

return (
<div id="compare-panel">
<h3>Compare</h3>
<h3>Comparisons</h3>
<DropdownButton id="add-query-button" title="Add Query Data">
{dropDownList()}
</DropdownButton>
<div className="compare-container">
<table className="compare-box">
<tbody>
<tr className="top-row">
Expand All @@ -94,6 +95,7 @@ export const Compare = (props: CompareProps) => {
{renderCompare()}
</tbody>
</table>
</div>
</div>
);
};
Expand Down
Loading

0 comments on commit 6b83cb3

Please sign in to comment.