mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-12 16:11:59 -05:00
Properly size the SQL Editor gutter as the width of the line numbers increases. Fixes #1780
This commit is contained in:
1 parent
1431dfcb01
commit
53ea991907
4 files changed
+12
-29
No files matched your search
@@ -52,8 +52,9 @@ iframe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure the codemirror editor displays full height gutters when resized */
|
/* Ensure the codemirror editor displays full height gutters when resized */
|
||||||
.CodeMirror, .CodeMirror-gutters {
|
.CodeMirror, .CodeMirror-gutter {
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
|
min-height: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Padding for the treeview */
|
/* Padding for the treeview */
|
||||||
@@ -268,6 +269,7 @@ iframe {
|
|||||||
.pgadmin-controls.SQL {
|
.pgadmin-controls.SQL {
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
padding-left: 1px;
|
padding-left: 1px;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
.pgadmin-controls > textarea.form-control,
|
.pgadmin-controls > textarea.form-control,
|
||||||
.pgadmin-controls > textarea.form-control[disabled] {
|
.pgadmin-controls > textarea.form-control[disabled] {
|
||||||
@@ -916,11 +918,13 @@ td.edit-cell.editable.sortable.renderable.editor {
|
|||||||
|
|
||||||
.tab-pane.SQL {
|
.tab-pane.SQL {
|
||||||
padding: 0px 7px 0px 0px;
|
padding: 0px 7px 0px 0px;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pgadmin-control-group.sql {
|
.pgadmin-control-group.sql {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-tabs{
|
.nav-tabs{
|
||||||
@@ -996,10 +1000,6 @@ ul.nav.nav-tabs {
|
|||||||
background-position: 0px 2px;
|
background-position: 0px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pgadmin-controls.SQL>.CodeMirror {
|
|
||||||
height: 500px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This rule will stop Chrome apply highlighting to elements such as DIV's used as modals */
|
/* This rule will stop Chrome apply highlighting to elements such as DIV's used as modals */
|
||||||
*:focus {
|
*:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
@@ -718,6 +718,7 @@ lgg-el-container[el=md] .pg-el-lg-8,
|
|||||||
|
|
||||||
.pg-el-container ul.tab-content {
|
.pg-el-container ul.tab-content {
|
||||||
min-height: calc(100% - 10px);
|
min-height: calc(100% - 10px);
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pgadmin-control-group {
|
.pgadmin-control-group {
|
||||||
|
|||||||
@@ -1456,13 +1456,6 @@
|
|||||||
this.sqlCtrl.setValue('-- ' + window.pgAdmin.Browser.messages.SQL_NO_CHANGE);
|
this.sqlCtrl.setValue('-- ' + window.pgAdmin.Browser.messages.SQL_NO_CHANGE);
|
||||||
}
|
}
|
||||||
this.sqlCtrl.refresh.apply(this.sqlCtrl);
|
this.sqlCtrl.refresh.apply(this.sqlCtrl);
|
||||||
|
|
||||||
this.$el.find('.CodeMirror').css(
|
|
||||||
'cssText',
|
|
||||||
'height: ' + (
|
|
||||||
this.$el.closest('.tab-content').height() + 8
|
|
||||||
) + 'px !important;'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPanelResized: function(o) {
|
onPanelResized: function(o) {
|
||||||
|
|||||||
@@ -157,24 +157,13 @@
|
|||||||
|
|
||||||
.CodeMirror, #editor-panel .CodeMirror-gutters {
|
.CodeMirror, #editor-panel .CodeMirror-gutters {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Changes specific to output panel of query tool */
|
#output-panel {
|
||||||
#output-panel, #output-panel .CodeMirror, #output-panel .CodeMirror-gutters {
|
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#output-panel .CodeMirror-gutter-wrapper {
|
|
||||||
width: 43px;
|
|
||||||
height: 22px;
|
|
||||||
border-right: 1px solid #ddd !important;
|
|
||||||
background: #f7f7f7 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.CodeMirror-foldgutter {
|
|
||||||
width: .9em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.CodeMirror-foldgutter-open,
|
.CodeMirror-foldgutter-open,
|
||||||
.CodeMirror-foldgutter-folded {
|
.CodeMirror-foldgutter-folded {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -431,8 +420,8 @@ input.editor-checkbox {
|
|||||||
Ref: https://github.com/mleibman/SlickGrid/issues/742
|
Ref: https://github.com/mleibman/SlickGrid/issues/742
|
||||||
*/
|
*/
|
||||||
.slickgrid, .slickgrid *, .slick-header-column {
|
.slickgrid, .slickgrid *, .slick-header-column {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
-moz-box-sizing: content-box;
|
-moz-box-sizing: content-box;
|
||||||
-webkit-box-sizing: content-box;
|
-webkit-box-sizing: content-box;
|
||||||
-ms-box-sizing: content-box;
|
-ms-box-sizing: content-box;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user