Skip to content

Commit

Permalink
More fine tuning of desktop panel as per feedback
Browse files Browse the repository at this point in the history
Reduce height of more/less button. Related feedback:

uBlockOrigin/uBlock-issues#1027 (comment)

Use more concise text string for blocked requests
statistics. Related feedback:

uBlockOrigin/uBlock-issues#1027 (comment)

Fix issue with overly long hostnames, and spurious
spacing when using undocumented advanced setting.
Related feedback:

uBlockOrigin/uBlock-issues#1027 (comment)
  • Loading branch information
gorhill committed May 18, 2020
1 parent 2a15729 commit cb2ce06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
"description":"English: on this page"
},
"popupBlockedStats":{
"message":"{{count}} or {{percent}}%",
"description":"Example: 15 or 13%"
"message":"{{count}} ({{percent}}%)",
"description":"Example: 15 (13%)"
},
"popupBlockedSinceInstallPrompt":{
"message":"since install",
Expand Down
12 changes: 9 additions & 3 deletions src/css/popup-fenix.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ body.needSave #revertRules {
margin: var(--popup-gap) var(--popup-gap-extra-thin);
text-align: center;
}
#hostname > span {
word-break: break-all;
}
#hostname > span + span {
font-weight: 600;
}
Expand Down Expand Up @@ -222,9 +225,12 @@ body.mobile.no-tooltips .toolRibbon .tool {
#moreOrLess > span {
cursor: pointer;
margin: 0;
padding: var(--popup-gap);
padding: var(--popup-gap-thin) var(--popup-gap);
user-select: none;
}
:root.mobile #moreOrLess > span {
padding: var(--popup-gap);
}
#moreButton .fa-icon {
transform: rotate(180deg);
}
Expand Down Expand Up @@ -524,8 +530,8 @@ body:not([data-more~="c"]) [data-more="c"],
body:not([data-more~="d"]) [data-more="d"],
body:not([data-more~="f"]) [data-more="f"] {
height: 0;
margin-bottom: 0;
margin-top: 0;
margin-bottom: 0 !important;
margin-top: 0 !important;
overflow-y: hidden;
visibility: hidden;
}
Expand Down

0 comments on commit cb2ce06

Please sign in to comment.