Made dashboard responsive #1.1.0

This commit is contained in:
Sven Heidemann 2023-08-17 22:35:10 +02:00
parent 9338e35504
commit fa71759a20
4 changed files with 38 additions and 17 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "kdb-web", "name": "kdb-web",
"version": "1.1.0.rc4", "version": "1.1.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"update-version": "ts-node-esm update-version.ts", "update-version": "ts-node-esm update-version.ts",

View File

@ -8,7 +8,7 @@
{{frontendVersion.getVersionString()}} {{frontendVersion.getVersionString()}}
</span> </span>
</div> </div>
<span class="version-divider"> <span class="divider">
| |
</span> </span>
<div class="backend-version"> <div class="backend-version">
@ -22,7 +22,7 @@
</div> </div>
<div class="right"> <div class="right">
<button pButton label="{{'footer.privacy' | translate}}" class="btn text-btn" (click)="navigateToPrivacy()"></button> <button pButton label="{{'footer.privacy' | translate}}" class="btn text-btn" (click)="navigateToPrivacy()"></button>
<span> | </span> <span class="divider"> | </span>
<button pButton label="{{'footer.imprint' | translate}}" class="btn text-btn" (click)="navigateToImprint()"></button> <button pButton label="{{'footer.imprint' | translate}}" class="btn text-btn" (click)="navigateToImprint()"></button>
</div> </div>
</footer> </footer>

View File

@ -2,6 +2,6 @@
"WebVersion": { "WebVersion": {
"Major": "1", "Major": "1",
"Minor": "1", "Minor": "1",
"Micro": "0.rc4" "Micro": "0"
} }
} }

View File

@ -79,7 +79,14 @@ header {
.logo { .logo {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
overflow: hidden;
.app-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
} }
.header-menu { .header-menu {
@ -119,6 +126,7 @@ header {
.component-wrapper { .component-wrapper {
width: 100%; width: 100%;
overflow: hidden;
.component { .component {
width: 100%; width: 100%;
@ -316,8 +324,11 @@ header {
gap: 15px; gap: 15px;
padding: 20px; padding: 20px;
overflow: hidden;
.logo { .logo {
display: flex;
align-items: center;
img { img {
width: 4rem; width: 4rem;
@ -337,6 +348,7 @@ header {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
word-break: break-word;
} }
.data { .data {
@ -480,7 +492,7 @@ header {
footer { footer {
width: 100%; width: 100%;
height: $footerHeight; min-height: $footerHeight;
padding: 0 10px; padding: 0 10px;
display: flex; display: flex;
@ -489,23 +501,18 @@ footer {
.left { .left {
width: 50%; width: 50%;
display: flex; display: flex;
gap: 10px;
// .frontend-version {
// }
.version-divider {
margin: 0 5px;
}
// .backend-version {
// }
} }
.right { .right {
width: 50%; width: 50%;
display: flex;
align-items: end;
text-align: right; text-align: right;
justify-content: right;
gap: 10px;
.p-button-label { .p-button-label {
font-weight: unset !important; font-weight: unset !important;
@ -633,3 +640,17 @@ p-inputNumber {
padding: 0 !important; padding: 0 !important;
border: none !important; border: none !important;
} }
@media (max-width: 720px) {
footer {
.left,
.right {
flex-direction: column;
.divider {
display: none;
}
}
}
}