mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-11-01 17:10:41 +01:00
Merge pull request #143 from ollama4j/small-fixes
All checks were successful
Mark stale issues / stale (push) Successful in 33s
All checks were successful
Mark stale issues / stale (push) Successful in 33s
Small fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
|
||||
const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentences = 1000, height = '200px', width = '100%' }) => {
|
||||
const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentences = 1000, height = '200px', width = '100%', align = 'left' }) => {
|
||||
const [text, setText] = useState('');
|
||||
const [sentenceIndex, setSentenceIndex] = useState(0);
|
||||
const [charIndex, setCharIndex] = useState(0);
|
||||
@@ -56,11 +56,13 @@ const TypewriterTextarea = ({ textContent, typingSpeed = 50, pauseBetweenSentenc
|
||||
fontSize: '1rem',
|
||||
backgroundColor: '#f4f4f4',
|
||||
border: '1px solid #ccc',
|
||||
textAlign: align,
|
||||
resize: 'none',
|
||||
whiteSpace: 'pre-wrap',
|
||||
color: 'black',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default TypewriterTextarea;
|
||||
export default TypewriterTextarea;
|
||||
@@ -32,6 +32,7 @@ function HomepageHeader() {
|
||||
pauseBetweenSentences={1200}
|
||||
height='130px'
|
||||
width='100%'
|
||||
align='center'
|
||||
/>
|
||||
</div>
|
||||
<div className={styles.buttons} >
|
||||
|
||||
Reference in New Issue
Block a user