Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Web: Font-size adjustments

Kilian Lieret0417d3061d10
diff --git a/sweagent/frontend/src/components/EnvMessage.js b/sweagent/frontend/src/components/EnvMessage.js
index 77136a2c..5fdd5819 100644
--- a/sweagent/frontend/src/components/EnvMessage.js
+++ b/sweagent/frontend/src/components/EnvMessage.js
@@ -28,8 +28,10 @@ const EnvMessage = ({ item, handleMouseEnter, handleMouseLeave, isHighlighted, f
margin: 0,
padding: `${paddingTop} 0.5em ${paddingBottom} 0.5em`,
overflowX: 'hidden',
- lineHeight: 'inherit',
+ overflowY: 'hidden',
+ lineHeight: '100%',
backgroundColor: 'transparent',
+ fontSize: '93%',
}
const codeTagProps = {
@@ -37,9 +39,10 @@ const EnvMessage = ({ item, handleMouseEnter, handleMouseLeave, isHighlighted, f
boxShadow: "none",
margin: "0",
overflowY: "hidden",
+ overflowX: "hidden",
padding: "0",
lineHeight: 'inherit',
- fontSize: 'inherit',
+ fontSize: '93%',
}
}
@@ -52,7 +55,7 @@ const EnvMessage = ({ item, handleMouseEnter, handleMouseLeave, isHighlighted, f
if (item.format !== "text") {
return (
<div
- className={`message ${stepClass} ${highlightClass} ${messageTypeClass}`}
+ className={`message envMessage ${stepClass} ${highlightClass} ${messageTypeClass}`}
onMouseEnter={() => handleMouseEnter(item, feedRef)}
onMouseLeave={handleMouseLeave}
>
diff --git a/sweagent/frontend/src/static/logPanel.css b/sweagent/frontend/src/static/logPanel.css
index 35ace2bc..5fac32d4 100644
--- a/sweagent/frontend/src/static/logPanel.css
+++ b/sweagent/frontend/src/static/logPanel.css
@@ -6,6 +6,7 @@
.logPanel .innerDiv {
padding-left: 1em;
+ font-size: 75%;
}
.logPanel .scrollableDiv {
diff --git a/sweagent/frontend/src/static/message.css b/sweagent/frontend/src/static/message.css
index 110c6e23..c26c3996 100644
--- a/sweagent/frontend/src/static/message.css
+++ b/sweagent/frontend/src/static/message.css
@@ -4,6 +4,7 @@
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 0.25em 1em;
margin: 1em;
+ overflow-x: hidden;
}
.highlight {