Start implementing editor popup

This commit is contained in:
2022-04-09 15:27:37 -05:00
parent cab432fe29
commit b47159c4c9
4 changed files with 87 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ import Katex from './Katex.vue'
const props = defineProps<{
statement: MathStatement,
evaluation: EvaluationResult,
renderVersion: number,
}>()
const getValueStatement = (): Maybe<MathStatement> => {
@@ -36,6 +37,14 @@ computed(() => value = getValueStatement())
.sidebar {
padding-left: 10px;
}
.edit-button {
border: none;
}
.edit-button:hover {
cursor: pointer;
}
</style>
<template>
@@ -48,7 +57,7 @@ computed(() => value = getValueStatement())
</div>
</div>
<div class="sidebar">
<button>
<button class="edit-button" @click="() => $emit('edit')" title="Edit this expression">
<img src="../assets/edit.svg" alt="Edit" height="16">
</button>
</div>