From f12e6a96dd66140b06c55eda775af48a666627dd Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Thu, 24 Mar 2022 17:34:24 +0100 Subject: [PATCH] fix(UI): connection buttons out of screen on small displays, closes #213 --- src/renderer/App.vue | 14 +++++- src/renderer/components/BaseUploadInput.vue | 1 + src/renderer/components/Workspace.vue | 4 +- .../WorkspaceAddConnectionPanel.vue | 48 +++++++++---------- .../WorkspaceEditConnectionPanel.vue | 48 +++++++++---------- 5 files changed, 65 insertions(+), 50 deletions(-) diff --git a/src/renderer/App.vue b/src/renderer/App.vue index a13a32bd..698e6541 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -10,7 +10,9 @@ :key="connection.uid" :connection="connection" /> - +
+ +
@@ -131,5 +133,15 @@ export default { > .columns { height: calc(100vh - #{$footer-height}); } + + .connection-panel-wrapper{ + height: calc(100vh - #{$excluding-size}); + width: 100%; + padding-top: 15vh; + display: flex; + justify-content: center; + align-items: flex-start; + overflow: auto; + } } diff --git a/src/renderer/components/BaseUploadInput.vue b/src/renderer/components/BaseUploadInput.vue index 432b2bff..9f4245ee 100644 --- a/src/renderer/components/BaseUploadInput.vue +++ b/src/renderer/components/BaseUploadInput.vue @@ -78,6 +78,7 @@ export default { .file-uploader-message { display: flex; + word-break: keep-all; border-radius: $border-radius 0 0 $border-radius; } diff --git a/src/renderer/components/Workspace.vue b/src/renderer/components/Workspace.vue index 1cc20549..79e6b74e 100644 --- a/src/renderer/components/Workspace.vue +++ b/src/renderer/components/Workspace.vue @@ -450,7 +450,9 @@ /> - +
+ +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-
@@ -203,7 +203,7 @@
- +
- +
- +
- +
-
@@ -276,7 +276,7 @@
- +
- +
- +
- +
- +
- +
.connection-panel { - margin-top: 15vh; margin-left: auto; margin-right: auto; + margin-bottom: 1rem; .panel { - width: 450px; + min-width: 450px; border-radius: $border-radius; .panel-body { diff --git a/src/renderer/components/WorkspaceEditConnectionPanel.vue b/src/renderer/components/WorkspaceEditConnectionPanel.vue index ec413f43..27c920da 100644 --- a/src/renderer/components/WorkspaceEditConnectionPanel.vue +++ b/src/renderer/components/WorkspaceEditConnectionPanel.vue @@ -34,7 +34,7 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
-
@@ -203,7 +203,7 @@
- +
- +
- +
- +
-
@@ -276,7 +276,7 @@
- +
- +
- +
- +
- +
- +
.connection-panel { - margin-top: 15vh; margin-left: auto; margin-right: auto; + margin-bottom: 1rem; .panel { - width: 450px; + min-width: 450px; border-radius: $border-radius; .panel-body {