Fix some UI

This commit is contained in:
QiTao Weng 2022-04-10 02:58:00 -05:00
parent 3730afe092
commit da4961f698
6 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import {defineEmits, onMounted, ref} from 'vue'
import {MathStatement} from '../support/parse'
import Katex from '../components/Katex.vue'
import Katex from './Katex.vue'
import { v4 as uuidv4 } from 'uuid'
import {StatementID} from '../support/types'
@ -64,7 +64,7 @@ onMounted(() => {
<template>
<q-card>
<q-card-section>
<q-card-section v-if="expressionValue">
<div style="display: flex; justify-content: center">
<Katex
:key="expressionPreviewKey"

View File

@ -69,7 +69,7 @@ onMounted(() => {
<template>
<q-card>
<q-card-section>
<div style="display: flex; justify-content: center">
<div v-if="functionValue" style="display: flex; justify-content: center">
<Katex
:key="functionPreviewKey"
:statement="functionPreview"

View File

@ -39,7 +39,7 @@ computed(() => value = getValueStatement())
</style>
<template>
<div class="math-statement" style="background: white">
<div class="math-statement" style="background: var(--q-dark)">
<div class="content">
<Katex :statement="statement" size="big"/>
<div class="result" v-if="value">

View File

@ -3,7 +3,7 @@ import * as math from 'mathjs'
import {onMounted, ref} from 'vue'
import {MathStatement} from '../support/parse'
import {v4 as uuidv4} from 'uuid'
import Katex from '../components/Katex.vue'
import Katex from './Katex.vue'
import {StatementID} from '../support/types'
const props = defineProps<{

View File

@ -5,8 +5,8 @@ import { MathPage } from '../support/page'
import { MathStatement } from '../support/parse'
import { EvaluationResult, hasOwnProperty } from '../support/types'
import Statement from '../components/Statement.vue'
import VarDeclEditor from './VarDeclEditor.vue'
import ExpressionEditor from './ExpressionEditor.vue'
import VarDeclEditor from '../components/VarDeclEditor.vue'
import ExpressionEditor from '../components/ExpressionEditor.vue'
import TextBox from '../components/TextBox.vue'
import ImageBox from '../components/ImageBox.vue'