diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-09-24 01:00:42 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-09-24 01:00:42 -0700 |
commit | f9a84bd2d65b3142cbcfcdd8e1e9394c9d4b458e (patch) | |
tree | bf986f4dfbf89881ca2a1d0d925ae846d0b9c5c0 /extension/react-app/src/components/Suggestions.tsx | |
parent | 2cc90f0eedee7056ca03cef946d734b365ab33f4 (diff) | |
download | sncontinue-f9a84bd2d65b3142cbcfcdd8e1e9394c9d4b458e.tar.gz sncontinue-f9a84bd2d65b3142cbcfcdd8e1e9394c9d4b458e.tar.bz2 sncontinue-f9a84bd2d65b3142cbcfcdd8e1e9394c9d4b458e.zip |
feat: :lipstick: more ui improvements
Diffstat (limited to 'extension/react-app/src/components/Suggestions.tsx')
-rw-r--r-- | extension/react-app/src/components/Suggestions.tsx | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/extension/react-app/src/components/Suggestions.tsx b/extension/react-app/src/components/Suggestions.tsx index 1709288c..c9d30de6 100644 --- a/extension/react-app/src/components/Suggestions.tsx +++ b/extension/react-app/src/components/Suggestions.tsx @@ -91,16 +91,20 @@ function SuggestionsDiv(props: SuggestionsDivProps) { const stageDescriptions = [ <p>Ask a question</p>, - <ol> - <li>Highlight code in the editor</li> - <li>Press cmd+M to select the code</li> - <li>Ask a question</li> - </ol>, - <ol> - <li>Highlight code in the editor</li> - <li>Press cmd+shift+M to select the code</li> - <li>Request and edit</li> - </ol>, + <p> + 1. Highlight code in the editor + <br /> + 2. Press cmd+M to select the code + <br /> + 3. Ask a question + </p>, + <p> + 1. Highlight code in the editor + <br /> + 2. Press cmd+shift+M to select the code + <br /> + 3. Request an edit + </p>, ]; const suggestionsStages: any[][] = [ @@ -178,7 +182,7 @@ function SuggestionsArea(props: { onClick: (textInput: string) => void }) { const inputs = timeline.filter( (node) => !node.step.hide && node.step.name === "User Input" ); - return inputs.length - numTutorialInputs === 0; + return inputs.length - numTutorialInputs <= 0; }, [timeline, numTutorialInputs]); return ( @@ -187,9 +191,9 @@ function SuggestionsArea(props: { onClick: (textInput: string) => void }) { <TutorialDiv> <div className="flex"> <SparklesIcon width="1.3em" height="1.3em" color="yellow" /> - <b className="ml-1">Tutorial</b> + <b className="ml-1">Tutorial ({stage + 1}/3)</b> </div> - <p style={{ color: lightGray }}> + <p style={{ color: vscForeground, paddingLeft: "4px" }}> {stage < suggestionsStages.length && suggestionsStages[stage][0]?.title} </p> |