fix prompt (placeholder) size and alignment - #1
Open
Scienthousiaste wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
La raison d'être de ce fork du repo mathlive est expliquée dans la discussion sur ce ticket https://github.com/orgs/EvidenceB/projects/6/views/5?pane=issue&itemId=154149169&issue=EvidenceB%7Cathena-ts%7C57. Les placeholder, que nous utilisons dans nos exercices, n'apparaissent plus correctement, en particulier dès qu'on ajoute une fraction - y compris sur la page de démo de la feature dans la documentation de mathlive (https://mathlive.io/mathfield/guides/fill-in-the-blank/).
Ils ont une issue ouverte sur le sujet depuis février : arnog#2949
Avant / après
Sur preprod actuellement :

L'input entier géré par mathlive apparait bien, mais les placeholder apparaissent invariablement mal dès qu'on y ajoute du contenu.
En utilisant le code de cette PR :

Les prompts sont un peu plus grandes, carrées, mieux espacées, et la mise à jour de leur taille se fait correctement en fonction du contenu.
Note : le code a été entièrement "vibe codé" par Claude 4.6
Test
Pour utiliser cette librairie :
yarn linkdans le repo mathliveyarn link /Users/tim/dev/mathlive --private(donc le lien vers le repo local) dans athena-ts