Post annotator code clean-up & check if post-annotator could be simplified (code)
Currently the post annotator is switching between mobile and desktop by changing between components. So we have two different AnnotateInput and two different AnnotationStream components. That makes it more complicated to maintain, as changes always have to be implemented twice.
If we could put the layout and the switch between mobile and desktop in post-annotator.vue and only use one AnnotateInput and one AnnotationsStream once it would be less prone to errors.
We could check if component(is="")
or flexbox and order
could be a solution for the layout switch. (Maybe teleport
in the future with Vue3)
Edited by Isabela Dimarco