Merge highlight improvements

This commit is contained in:
Jackson Harper
2023-04-03 17:19:43 +08:00
343 changed files with 17879 additions and 10233 deletions

View File

@ -52,6 +52,11 @@ const mutation = async (name, input) => {
const App = () => {
applyStoredTheme(false)
document.addEventListener('updateLabels', (event) => {
console.log('updating labels: ', event.labels)
setLabels(event.labels)
})
return (
<>
<Box
@ -59,6 +64,7 @@ const App = () => {
overflowY: 'auto',
height: '100%',
width: '100vw',
paddingTop: window.webkit ? 0 : '48px', // add 48px to android only
}}
>
<VStack
@ -77,7 +83,7 @@ const App = () => {
maxWidthPercentage={window.maxWidthPercentage}
lineHeight={window.lineHeight}
highlightOnRelease={window.highlightOnRelease}
highContrastFont={window.prefersHighContrastFont ?? true}
highContrastText={window.prefersHighContrastFont ?? true}
articleMutations={{
createHighlightMutation: (input) =>
mutation('createHighlight', input),