Spaces:
Sleeping
Sleeping
create generating feedback display when loading
Browse files- src/App.js +15 -0
src/App.js
CHANGED
|
@@ -748,6 +748,21 @@ function App() {
|
|
| 748 |
disabled={loading}
|
| 749 |
rows="2"
|
| 750 |
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 751 |
</form>
|
| 752 |
</main>
|
| 753 |
{/* Right Sidebar - Direct Query Panel */}
|
|
|
|
| 748 |
disabled={loading}
|
| 749 |
rows="2"
|
| 750 |
/>
|
| 751 |
+
{loading && (
|
| 752 |
+
<div style={{
|
| 753 |
+
display: 'flex',
|
| 754 |
+
alignItems: 'center',
|
| 755 |
+
gap: '8px',
|
| 756 |
+
marginLeft: '12px',
|
| 757 |
+
color: '#a0a0a0',
|
| 758 |
+
fontSize: '0.9em'
|
| 759 |
+
}}>
|
| 760 |
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ animation: "spin 1s linear infinite" }}>
|
| 761 |
+
<path d="M21 12a9 9 0 1 1-6.219-8.56"/>
|
| 762 |
+
</svg>
|
| 763 |
+
<span>Generating...</span>
|
| 764 |
+
</div>
|
| 765 |
+
)}
|
| 766 |
</form>
|
| 767 |
</main>
|
| 768 |
{/* Right Sidebar - Direct Query Panel */}
|