Layout update

The backend table was pushing the right panel out of sight on smaller screens. I have added css grid to control the layout, including a minimax section so the content does not dictate the size of the middle screen.
This commit is contained in:
Joe 2020-07-14 14:52:11 +01:00
parent ce7911a91c
commit 1db1ad1a45
4 changed files with 7 additions and 2 deletions

View File

@ -65,6 +65,7 @@
margin-right: 20px; margin-right: 20px;
background: none; background: none;
outline: none; outline: none;
font-family: Inter;
} }
.switcher > .selected { .switcher > .selected {

View File

@ -22,7 +22,8 @@
<style> <style>
.root { .root {
height: 100%; height: 100%;
display: flex; display: grid;
grid-template-columns: 300px minmax(0, 1fr) 300px;
background: var(--grey-1); background: var(--grey-1);
line-height: 1; line-height: 1;
} }

View File

@ -27,7 +27,8 @@
.root { .root {
height: 100%; height: 100%;
display: flex; display: grid;
grid-template-columns: 300px minmax(0, 1fr) 300px;
background: var(--grey-1); background: var(--grey-1);
line-height: 1; line-height: 1;
} }

View File

@ -71,6 +71,8 @@
background: #fff; background: #fff;
border-radius: 3px; border-radius: 3px;
border-collapse: collapse; border-collapse: collapse;
overflow: scroll; /* Scrollbar are always visible */
overflow: auto; /* Scrollbar is displayed as it's needed */
} }
thead { thead {