Skip to content

Commit

Permalink
[Math-Checker] Update mathlive to version 0.98.5 (#1552)
Browse files Browse the repository at this point in the history
chore(math-checker): update mathlive to version 0.98.5
  • Loading branch information
Zitrone44 authored Jan 12, 2024
1 parent 94488c8 commit 59245bc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 17 deletions.
24 changes: 20 additions & 4 deletions modules/fbs-core/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/fbs-core/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"chart.js": "^2.9.4",
"file-saver": "^2.0.5",
"i18next-browser-languagedetector": "^7.1.0",
"mathlive": "^0.87.1",
"mathlive": "^0.98.5",
"ng2-charts": "^2.4.3",
"ngx-cookie-service": "^14.0.1",
"ngx-dropzone": "^3.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
math-field {
--primary: #405e9a;
font-size: large;
}

.math-field-input {
border-bottom: solid black 1px;
width: 100%;
border: none;
}

math-field:focus-within {
outline: unset;
}

math-field::part(menu-toggle) {
display: none;
}

math-field::part(virtual-keyboard-toggle)::after {
top: unset;
right: calc(-100% + 64px);
}

.math-field-input {
border-bottom: solid black 1px;
}

.mathInputContainer {
display: flex;
gap: 8px;
Expand All @@ -20,5 +31,3 @@ math-field:focus-within {
align-self: center;
width: calc(100% - 64px);
}


Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Output,
ViewChild,
} from "@angular/core";
import { insertShadowRootStyle } from "src/app/util/css";

export interface MathInputValue {
mathJson?: string;
Expand Down Expand Up @@ -63,10 +62,5 @@ export class MathInputComponent implements OnChanges, AfterViewInit {
el.expression = JSON.parse(this.defaultValue.mathJson);
}
}
if (this.disabled) {
insertShadowRootStyle(this.input, [
".ML__content { overflow: unset; overflow-y: hidden; }",
]);
}
}
}

0 comments on commit 59245bc

Please sign in to comment.