Spaces:
Running
Running
wip
Browse files- frontend/src/App.jsx +11 -0
- frontend/src/styles.css +6 -0
frontend/src/App.jsx
CHANGED
|
@@ -891,6 +891,17 @@ export function App() {
|
|
| 891 |
)}
|
| 892 |
</div>
|
| 893 |
)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 894 |
{hasStagedEdits ? (
|
| 895 |
<div className="output-block">
|
| 896 |
<p className="section-title">Edited Preview</p>
|
|
|
|
| 891 |
)}
|
| 892 |
</div>
|
| 893 |
)}
|
| 894 |
+
{sentences.some(s => s.uncertainty_band === "mid") && !uncertaintyWarning && !submitMessage && !serverAsleep ? (
|
| 895 |
+
<div className="suggest-edits-row">
|
| 896 |
+
<Button
|
| 897 |
+
outlined
|
| 898 |
+
small
|
| 899 |
+
text="Suggest edits"
|
| 900 |
+
loading={isComparing}
|
| 901 |
+
onClick={handleCompareVersions}
|
| 902 |
+
/>
|
| 903 |
+
</div>
|
| 904 |
+
) : null}
|
| 905 |
{hasStagedEdits ? (
|
| 906 |
<div className="output-block">
|
| 907 |
<p className="section-title">Edited Preview</p>
|
frontend/src/styles.css
CHANGED
|
@@ -449,6 +449,12 @@ textarea[readonly] {
|
|
| 449 |
}
|
| 450 |
|
| 451 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
.draft-choice-container {
|
| 453 |
display: flex;
|
| 454 |
flex-direction: column;
|
|
|
|
| 449 |
}
|
| 450 |
|
| 451 |
|
| 452 |
+
.suggest-edits-row {
|
| 453 |
+
border-top: 1px solid var(--line);
|
| 454 |
+
margin-top: 14px;
|
| 455 |
+
padding-top: 12px;
|
| 456 |
+
}
|
| 457 |
+
|
| 458 |
.draft-choice-container {
|
| 459 |
display: flex;
|
| 460 |
flex-direction: column;
|