Skip to content

Commit

Permalink
fix #installed-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Dec 22, 2023
1 parent 883b05f commit 5391aa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<p i18n="stylusUnavailableForURLdetails"></p>
</div>

<main id="#installed-wrapper" class="rel">
<main id="installed-wrapper" class="rel">
<aside id="hotkey-info" i18n="title:popupHotkeysTooltip"></aside>
<div id="installed" i18n="data-no-styles:noStylesForSite"></div>
</main>
Expand Down
6 changes: 4 additions & 2 deletions popup/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ body > div:not(#message-box):not(.colorpicker-popup) {
.entry {
position: relative;
}
.blocked-info,
.styles-last #main-actions,
.styles-first :is(#installed-wrapper, .entry:nth-last-child(n + 2)) {
.styles-first #installed:not(:empty),
.styles-first #installed:empty::after,
.styles-first .entry:nth-last-child(n + 2) {
border-bottom: var(--border);
}
.styles-last .entry:nth-child(n + 2) {
Expand Down Expand Up @@ -580,7 +583,6 @@ a:hover i {
}
.blocked-info {
background-color: var(--c98);
border-bottom: var(--border);
& label {
padding: .75em var(--outer-padding) .5em;
display: block;
Expand Down
1 change: 0 additions & 1 deletion popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ function resortEntries(entries) {
if (entries || prefs.get('popup.autoResort')) {
installed.append(...sortStyles(entries || [...installed.children]));
}
$('#install-wrapper').hidden = !installed.firstChild;
}

function createStyleElement(style, entry) {
Expand Down

0 comments on commit 5391aa9

Please sign in to comment.