Support international alphabets in mininotation

This commit is contained in:
Alexandre G.-Raymond 2023-10-21 22:51:20 +02:00
parent 4fa0a9064b
commit cb8edd9b8f
No known key found for this signature in database
GPG key ID: 97BA9F51695B5C7B
3 changed files with 176 additions and 28 deletions

View file

@ -339,9 +339,13 @@ export function Repl({ embedded = false }) {
</section>
{panelPosition === 'right' && !isEmbedded && <Footer context={context} />}
</div>
{error && (
<div className="text-red-500 p-4 bg-lineHighlight animate-pulse">{error.message || 'Unknown Error :-/'}</div>
)}
{error &&
(error.message.length < 180 ||
(error.message = error.message.slice(0, 150) + ' [...] ' + error.message.slice(-30))) && (
<div className="text-red-500 p-4 bg-lineHighlight animate-pulse">
{error.message || 'Unknown Error :-/'}
</div>
)}
{panelPosition === 'bottom' && !isEmbedded && <Footer context={context} />}
</div>
</ReplContext.Provider>