aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/GPTPopup
diff options
context:
space:
mode:
authoraidahosa1 <aisosa_idahosa@brown.edu>2024-06-04 12:48:41 -0400
committeraidahosa1 <aisosa_idahosa@brown.edu>2024-06-04 12:48:41 -0400
commit6bfa2fd696a306a984b29c6ea11fa66e93e0474c (patch)
tree924bbcdad4bbef3e13ea211d267bd6d8ea74964f /src/client/views/pdf/GPTPopup
parenta7f5bd1c2438f95252f5515d7226b491dfb5183b (diff)
changes
Diffstat (limited to 'src/client/views/pdf/GPTPopup')
-rw-r--r--src/client/views/pdf/GPTPopup/GPTPopup.tsx21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
index cb5aad32d..c0f17ba4e 100644
--- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx
+++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
@@ -317,21 +317,13 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> {
sortBox = () => (
<>
<div>
- {this.heading('SORTING')}
- {this.loading ? (
- <div className="content-wrapper">
- <div className="loading-spinner">
- <ReactLoading type="spin" color={StrCast(Doc.UserDoc().userVariantColor)} height={30} width={30} />
- <span>Loading...</span>
- </div>
- </div>
- ) : (
+ {this.heading('SORTING')}
<>
- {!this.cardsDoneLoading ? (
+ {!this.cardsDoneLoading || this.loading ? (
<div className="content-wrapper">
<div className="loading-spinner">
<ReactLoading type="spin" color={StrCast(Doc.UserDoc().userVariantColor)} height={30} width={30} />
- <span>Reading Cards...</span>
+ {this.loading ? <span>Loading...</span> : <span>Reading Cards...</span>}
</div>
</div>
) : (
@@ -344,10 +336,10 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> {
color={StrCast(Doc.UserDoc().userVariantColor)}
type={Type.TERT}
style={{
- width: '90%', // Almost as wide as the container
+ width: '90%',
textAlign: 'center',
- color: '#ffffff', // White text
- fontSize: '16px', // Adjust font size as needed
+ color: '#ffffff',
+ fontSize: '16px',
}}
/>
</div>
@@ -363,7 +355,6 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> {
</div>
)}
</>
- )}
</div>
</>
);