Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion torchci/components/TorchAgentPage/QueryInputSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,19 @@ export const QueryInputSection: React.FC<QueryInputSectionProps> = ({
onChange={onQueryChange}
margin="normal"
multiline
rows={3}
minRows={3}
maxRows={10}
placeholder={
"Example: Make a graph of the number of failing jobs per day (Tip: Ctrl+Enter to submit)"
}
variant="outlined"
sx={{
"& .MuiInputBase-root": {
"& textarea": {
resize: "vertical",
},
},
}}
onKeyDown={(e) => {
if ((e.ctrlKey || e.metaKey) && e.key === "Enter") {
e.preventDefault();
Expand Down
10 changes: 9 additions & 1 deletion torchci/components/TorchAgentPage/WelcomeSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,18 @@ export const WelcomeSection: React.FC<WelcomeSectionProps> = ({
onChange={onQueryChange}
margin="normal"
multiline
rows={3}
minRows={3}
maxRows={10}
placeholder="Example: Make a graph of the number of failing jobs per day (Tip: Ctrl+Enter to submit)"
variant="outlined"
disabled={isLoading}
sx={{
"& .MuiInputBase-root": {
"& textarea": {
resize: "vertical",
},
},
}}
onKeyDown={(e) => {
if ((e.ctrlKey || e.metaKey) && e.key === "Enter") {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion torchci/components/TorchAgentPage/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const QuerySection = styled(Paper)(({ theme }) => ({
padding: "20px",
position: "sticky",
bottom: 0,
zIndex: 5,
zIndex: 15,
borderTop: `1px solid ${theme.palette.divider}`,
}));

Expand Down