Merge pull request #277 from aumonmes/master

Added comment indicators for tables and fields
This commit is contained in:
Ondřej Žára
2018-12-20 10:11:39 +01:00
committed by GitHub
3 changed files with 31 additions and 1 deletions
+2
View File
@@ -191,6 +191,7 @@ SQL.Row.prototype.expand = function() {
this.buildEdit(); this.buildEdit();
this.load(); this.load();
this.redraw(); this.redraw();
this.dom.container.classList.add('expanded');
this.dom.name.focus(); this.dom.name.focus();
this.dom.name.select(); this.dom.name.select();
} }
@@ -198,6 +199,7 @@ SQL.Row.prototype.expand = function() {
SQL.Row.prototype.collapse = function() { SQL.Row.prototype.collapse = function() {
if (!this.expanded) { return; } if (!this.expanded) { return; }
this.expanded = false; this.expanded = false;
this.dom.container.classList.remove('expanded');
var data = { var data = {
type: this.dom.type.selectedIndex, type: this.dom.type.selectedIndex,
+28
View File
@@ -145,6 +145,34 @@ body {
display: inline-block; display: inline-block;
} }
.table thead td[title]:not([title=""]):after{
content: '';
position: absolute;
top: 0;
right: 0;
border-color: royalblue;
border-style: solid;
border-width: 5px;
border-bottom-color: transparent;
border-left-color: transparent;
}
.table tbody td {
position: relative;
}
.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after{
content: '';
position: absolute;
top: 0;
right: 0;
border-color: royalblue;
border-style: solid;
border-width: 5px;
border-bottom-color: transparent;
border-left-color: transparent;
}
.primary { .primary {
font-weight: bold; font-weight: bold;
} }