Skip to content

Commit

Permalink
[YUNIKORN-2956] Fix layout break on Queues v2 page (#220)
Browse files Browse the repository at this point in the history
Closes: #220

Signed-off-by: Craig Condit <ccondit@apache.org>
  • Loading branch information
SP12893678 authored and craigcondit committed Oct 31, 2024
1 parent d714335 commit b877df7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
9 changes: 6 additions & 3 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* limitations under the License.
*/

$header-height: 60px;

.navigation {
position: fixed;
width: 50px;
Expand Down Expand Up @@ -68,7 +70,7 @@
white-space: nowrap;
color: #fff;
background: #313d54;
height: 60px;
height: $header-height;
overflow: hidden;
-webkit-transition: padding-left 0.4s ease, padding-top 0.4s ease;
-moz-transition: padding-left 0.4s ease, padding-top 0.4s ease;
Expand Down Expand Up @@ -229,7 +231,7 @@ ul.navigation-primary {
}

.container-fluid {
padding-top: 58px;
padding-top: $header-height;
}

// remove the beta tag when the feature is ready for production
Expand All @@ -240,7 +242,7 @@ ul.navigation-primary {
}

.header {
height: 58px;
height: $header-height;
background: #fff;
padding: 0 20px;
border-bottom: 1px solid #e3e3e3;
Expand Down Expand Up @@ -316,4 +318,5 @@ ul.breadcrumb a.back:after {

.content-wrapper {
padding: 20px;
height: calc(100vh - $header-height);
}
1 change: 0 additions & 1 deletion src/app/components/apps-view/apps-view.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

.top-section {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
Expand Down
1 change: 0 additions & 1 deletion src/app/components/nodes-view/nodes-view.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@

.nodes-view {
width: 100%;
height: 100%;
.mat-mdc-header-cell {
font-size: 15px;
font-weight: 500;
Expand Down
17 changes: 14 additions & 3 deletions src/app/components/queue-v2/queues-v2.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@
* limitations under the License.
*/

.queue-container {
height: 100%;
}

.queue-content-box {
width: calc(100% - 2rem); /* Subtract padding from the total width */
height: calc(100vh - 2rem); /* Subtract padding from the total height to ensure it's nearly as tall as the container */
height: 100%;
border-radius: 0.5rem;
background-color: white;
padding: 20px; /* Adjust padding to your preference */
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

display: flex;
flex-direction: column;
}

.header .title-group {
Expand Down Expand Up @@ -120,17 +127,21 @@
background-color: #8090a5;
}

.body {
height: 100%;
}

.content-wrapper {
display: flex;
height: 100%;
}

.visualize-area {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 600px;
max-height: 80%; /* Ensure there's space around the area within the content box */
height: 100%;
width: 100%;
border-radius: 0.5rem;
border: 2px dashed #d1d5db;
Expand Down

0 comments on commit b877df7

Please sign in to comment.