mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix scrolling on home and history
This commit is contained in:
@@ -20,6 +20,7 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
|
|||||||
padding: "12px 16px",
|
padding: "12px 16px",
|
||||||
margin: "5px 15px 5px 15px",
|
margin: "5px 15px 5px 15px",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
|
flexShrink: 0,
|
||||||
}}>
|
}}>
|
||||||
<VSCodeButton
|
<VSCodeButton
|
||||||
appearance="icon"
|
appearance="icon"
|
||||||
|
|||||||
@@ -480,9 +480,15 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
|
|||||||
onClose={handleTaskCloseButtonClick}
|
onClose={handleTaskCloseButtonClick}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<div
|
||||||
|
style={{
|
||||||
|
flexGrow: 1,
|
||||||
|
overflowY: "auto",
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "column",
|
||||||
|
}}>
|
||||||
{showAnnouncement && <Announcement version={version} hideAnnouncement={hideAnnouncement} />}
|
{showAnnouncement && <Announcement version={version} hideAnnouncement={hideAnnouncement} />}
|
||||||
<div style={{ padding: "0 20px", flexGrow: taskHistory.length > 0 ? undefined : 1 }}>
|
<div style={{ padding: "0 20px", flexShrink: 0 }}>
|
||||||
<h2>What can I do for you?</h2>
|
<h2>What can I do for you?</h2>
|
||||||
<p>
|
<p>
|
||||||
Thanks to{" "}
|
Thanks to{" "}
|
||||||
@@ -497,7 +503,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{taskHistory.length > 0 && <HistoryPreview showHistoryView={showHistoryView} />}
|
{taskHistory.length > 0 && <HistoryPreview showHistoryView={showHistoryView} />}
|
||||||
</>
|
</div>
|
||||||
)}
|
)}
|
||||||
{task && (
|
{task && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const HistoryPreview = ({ showHistoryView }: HistoryPreviewProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ flexGrow: 1, overflowY: "auto" }}>
|
<div style={{ flexShrink: 0 }}>
|
||||||
<style>
|
<style>
|
||||||
{`
|
{`
|
||||||
.history-preview-item {
|
.history-preview-item {
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ const HistoryView = ({ onDone }: HistoryViewProps) => {
|
|||||||
<h3 style={{ color: "var(--vscode-foreground)", margin: 0 }}>History</h3>
|
<h3 style={{ color: "var(--vscode-foreground)", margin: 0 }}>History</h3>
|
||||||
<VSCodeButton onClick={onDone}>Done</VSCodeButton>
|
<VSCodeButton onClick={onDone}>Done</VSCodeButton>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ padding: "5px 17px" }}>
|
<div style={{ padding: "5px 17px 10px 17px" }}>
|
||||||
<VSCodeTextField
|
<VSCodeTextField
|
||||||
style={{ width: "100%" }}
|
style={{ width: "100%" }}
|
||||||
placeholder="Search history..."
|
placeholder="Search history..."
|
||||||
@@ -147,7 +147,6 @@ const HistoryView = ({ onDone }: HistoryViewProps) => {
|
|||||||
style={{
|
style={{
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
overflowY: "scroll",
|
overflowY: "scroll",
|
||||||
scrollbarWidth: "none",
|
|
||||||
}}
|
}}
|
||||||
data={taskHistorySearchResults}
|
data={taskHistorySearchResults}
|
||||||
itemContent={(index, item) => (
|
itemContent={(index, item) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user