diff --git a/options/options.css b/options/options.css index bc5d147..94ff7af 100644 --- a/options/options.css +++ b/options/options.css @@ -55,7 +55,7 @@ header .bookmarkNotice { margin-right: 0.6em; } -.settings .section + .settingRow .content { +.settings .section + .settingRow .content, .settings .settingRow.firstVisible .content { border-top: 0 solid black; } diff --git a/options/options.js b/options/options.js index 4696b06..9490547 100644 --- a/options/options.js +++ b/options/options.js @@ -88,11 +88,20 @@ body.appendChild(row); }, updateDisplay: function(){ - body.classList[( - rows.some(function(row){ - return !row.classList.contains("hidden"); - }) - )? "remove": "add"]("hidden"); + var anyVisible = false; + rows.forEach(function(row){ + var isHidden = row.classList.contains("hidden"); + if (!isHidden){ + if (anyVisible){ + row.classList.remove("firstVisible"); + } + else { + anyVisible = true; + row.classList.add("firstVisible"); + } + } + }); + body.classList[anyVisible? "remove": "add"]("hidden"); } }; lastSection = section; diff --git a/releaseNotes.txt b/releaseNotes.txt index f13e14b..033a8ba 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -5,6 +5,7 @@ Version 0.4.5: new features: - Added way to inspect canvas content in ask mode while being asked - Open options page on install or update if the options page cannot be accessed in another way + - Added sections in options fixes: - prevent possible double faking