Skip to content

Commit

Permalink
Fix latex render in jasp toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
shun2wang committed Jun 6, 2023
1 parent 6ed6e34 commit 7d9afcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Desktop/html/css/jasp.css
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,10 @@ td.squash-left
z-index: 1;
}

.jasp-toolbar h1, .jasp-toolbar h2, .jasp-toolbar h3, .jasp-toolbar h4, .jasp-toolbar h5, .jasp-toolbar h6, .jasp-toolbar div , .jasp-toolbar span {
display: inline-block;
vertical-align: middle;
/* !! Exclude katex elements to avoid affecting formula layout */
.jasp-toolbar > *:not(.katex) {
display: inline-block;
vertical-align: middle;
}

.jasp-menu {
Expand Down
3 changes: 1 addition & 2 deletions Desktop/html/css/printing.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
{
#results { display: block; }

.jasp-toolbar h1, .jasp-toolbar h2, .jasp-toolbar h3, .jasp-toolbar h4, .jasp-toolbar h5, .jasp-toolbar h6, .jasp-toolbar div , .jasp-toolbar span
{ display: block !important; }
.jasp-toolbar > *:not(.katex) { display: block !important; }
.toolbar-button { display: none !important; visibility: hidden; }
.jasp-menu { display: none !important; visibility: hidden; }
.jasp-menu-selected { display: none !important; visibility: hidden; }
Expand Down

0 comments on commit 7d9afcd

Please sign in to comment.