Skip to content

Commit

Permalink
Update main.css
Browse files Browse the repository at this point in the history
Fix sizing issues of main window by making heights dynamic
  • Loading branch information
amanharwara committed Mar 20, 2019
1 parent 8f42e70 commit 8ad91b4
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions src/windows/main/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,51 @@ html {
padding: 0;
}

:root {
--main-height: 90vh;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
display: flex;
flex-direction: column;
height: 100%;
}

.main,
.container-after-titlebar {
overflow: hidden !important;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.ui.tab.segment,
.no-tabs {
height: 90vh !important;
.tab-contents {
flex-grow: 1;
padding: 0;
display: flex;
flex-direction: column;
}

.tab-contents div {
flex-grow: 1;
padding: 0;
}

.ui.tab.segment {
padding: 0;
flex-grow: 1;
margin: 0 !important;
border: 0 !important;
}

.ui.tab.segment.active {
display: flex;
flex-direction: column;
}

.ui.tab.segment>* {
height: inherit;
flex-grow: 1;
}

.ui.top.attached.tabular.menu {
Expand Down

0 comments on commit 8ad91b4

Please sign in to comment.