public inbox for [email protected]
help / color / mirror / Atom feedFrom: Aditya Toshniwal <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][RM3866] No way to add row to a table in v4.0
Date: Fri, 11 Jan 2019 21:15:19 +0530
Message-ID: <CAM9w-_k7MpKHUUzjLnq6U0q5fuEw1UBB3Wxk6z_ogb03O4pevw@mail.gmail.com> (raw)
Hi Hackers,
Attached is the patch to fix the issue where last row of data grid is not
visible.
Kindly review.
--
Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB Software Solutions | Pune
"Don't Complain about Heat, Plant a tree"
Attachments:
[application/octet-stream] RM3866.patch (1.5K, 3-RM3866.patch)
download | inline diff:
diff --git a/web/pgadmin/static/scss/resources/_default.variables.scss b/web/pgadmin/static/scss/resources/_default.variables.scss
index 1a263784..5aa65333 100644
--- a/web/pgadmin/static/scss/resources/_default.variables.scss
+++ b/web/pgadmin/static/scss/resources/_default.variables.scss
@@ -62,6 +62,7 @@ $gray-900: $color-fg-theme;
$body-color: $color-fg-theme;
$font-size-base: 0.875rem;
$line-height-base: 1.5; // no change
+$text-height-calc: $line-height-base*$font-size-base/1rem;
$grid-gutter-width: 15px;
$border-radius: 0.25rem; //no change
@@ -169,6 +170,8 @@ $datagrid-bg: $color-gray-light;
$sql-title-padding: 3px;
$sql-title-bg: $color-gray-darker;
$sql-title-fg: $white;
+// Toolbar + editor title heights + title bottom border
+$sql-editor-panel-top: $title-height + $text-height-calc*16px + $sql-title-padding*2 + $panel-border-width;
$sql-gutters-bg: $color-gray-light;
$sql-history-detail-bg: $color-gray-lighter;
$sql-history-success-bg: $color-primary-light;
diff --git a/web/pgadmin/tools/sqleditor/static/scss/_sqleditor.scss b/web/pgadmin/tools/sqleditor/static/scss/_sqleditor.scss
index 5d425bb8..a1cac04d 100644
--- a/web/pgadmin/tools/sqleditor/static/scss/_sqleditor.scss
+++ b/web/pgadmin/tools/sqleditor/static/scss/_sqleditor.scss
@@ -18,6 +18,15 @@
z-index: 0;
}
+#editor-panel {
+ z-index: 0;
+ position: absolute;
+ top: $sql-editor-panel-top;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
#editor-panel .CodeMirror-activeline-background {
background: $color-primary-light;
}
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin4][RM3866] No way to add row to a table in v4.0
In-Reply-To: <CAM9w-_k7MpKHUUzjLnq6U0q5fuEw1UBB3Wxk6z_ogb03O4pevw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox