From c45c8488f50f7c43fe9f29e4c8e2d6d0dafe796c Mon Sep 17 00:00:00 2001 From: Maro Date: Sat, 8 Dec 2018 10:32:55 +0000 Subject: [PATCH 1/3] Added comment indicators --- js/row.js | 2 ++ js/table.js | 2 ++ styles/style.css | 28 ++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/js/row.js b/js/row.js index a9abf86..32a9bc7 100644 --- a/js/row.js +++ b/js/row.js @@ -191,6 +191,7 @@ SQL.Row.prototype.expand = function() { this.buildEdit(); this.load(); this.redraw(); + this.dom.container.classList.add('expanded'); this.dom.name.focus(); this.dom.name.select(); } @@ -198,6 +199,7 @@ SQL.Row.prototype.expand = function() { SQL.Row.prototype.collapse = function() { if (!this.expanded) { return; } this.expanded = false; + this.dom.container.classList.remove('expanded'); var data = { type: this.dom.type.selectedIndex, diff --git a/js/table.js b/js/table.js index 099881d..87629ab 100644 --- a/js/table.js +++ b/js/table.js @@ -25,6 +25,8 @@ SQL.Table.prototype._build = function() { var thead = OZ.DOM.elm("thead"); var tr = OZ.DOM.elm("tr"); this.dom.title = OZ.DOM.elm("td", {className:"title", colSpan:2}); + + console.log(this.getComment()); OZ.DOM.append( [this.dom.container, this.dom.content], diff --git a/styles/style.css b/styles/style.css index 6dd8f9f..d9c1c21 100644 --- a/styles/style.css +++ b/styles/style.css @@ -145,6 +145,34 @@ body { display: inline-block; } +.table thead td[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 tr { + position: relative; +} + +.table tbody[title]:not(.expanded):not([title=""]) tr: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 { font-weight: bold; } From 36c84e9dd3d4ce612b936453dd1ddd366f10068a Mon Sep 17 00:00:00 2001 From: Maro Date: Mon, 10 Dec 2018 18:49:18 +0000 Subject: [PATCH 2/3] Fixed mark on fields --- styles/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styles/style.css b/styles/style.css index d9c1c21..88169ea 100644 --- a/styles/style.css +++ b/styles/style.css @@ -157,11 +157,11 @@ body { border-left-color: transparent; } -.table tbody tr { +.table tbody td { position: relative; } -.table tbody[title]:not(.expanded):not([title=""]) tr:after{ +.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after{ content: ''; position: absolute; top: 0; From f8ae0abd551bb53da45368d3e80a90f32025f6fb Mon Sep 17 00:00:00 2001 From: Maro Date: Mon, 10 Dec 2018 18:58:52 +0000 Subject: [PATCH 3/3] Removed forgotten console.log --- js/table.js | 2 -- styles/style.css | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/table.js b/js/table.js index 87629ab..1e613d7 100644 --- a/js/table.js +++ b/js/table.js @@ -26,8 +26,6 @@ SQL.Table.prototype._build = function() { var tr = OZ.DOM.elm("tr"); this.dom.title = OZ.DOM.elm("td", {className:"title", colSpan:2}); - console.log(this.getComment()); - OZ.DOM.append( [this.dom.container, this.dom.content], [this.dom.content, thead], diff --git a/styles/style.css b/styles/style.css index 88169ea..e61b1c3 100644 --- a/styles/style.css +++ b/styles/style.css @@ -145,7 +145,7 @@ body { display: inline-block; } -.table thead td[title]:after{ +.table thead td[title]:not([title=""]):after{ content: ''; position: absolute; top: 0;