Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
guanglinn committed Sep 4, 2024
1 parent d0b8783 commit e0253ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,9 @@ public static void showHeadlineDialog(

TextViewUtils.selectLines(edit, line);
final String jumpJs = "document.querySelector('[line=\"" + line + "\"]').scrollIntoView();";
webView.evaluateJavascript(jumpJs, null);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
webView.evaluateJavascript(jumpJs, null);
}
};

dopt.neutralButtonText = R.string.filter;
Expand Down
10 changes: 5 additions & 5 deletions app/thirdparty/assets/prism/plugins/toolbar/prism-toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ div.code-toolbar > .toolbar > .toolbar-item > span {
text-transform: none;
background: rgba(215, 215, 215, 0.4);
box-shadow: 0 2px 0 0 rgba(150,150,150,0.8);
border-radius: 0.4em;
border-radius: 0.5em;
display: inline-block;
min-width: 80%;
max-height: 1.8em;
padding-left: 0.5em;
padding-right: 0.5em;
padding-top: 0.2em;
max-height: 1.75em;
padding-left: 0.45em;
padding-right: 0.45em;
padding-top: 0.1em;
padding-bottom: 0.2em;
}

Expand Down

0 comments on commit e0253ff

Please sign in to comment.