Skip to content

Commit 640a618

Browse files
committed
More messing with tiny fixes
1 parent c53aeeb commit 640a618

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/herbie/InputRangesEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export const InputRangeEditor1: React.FC<InputRangeEditor1Props> = ({ value, set
160160
{
161161
boundsCrossesZero &&
162162
<>
163-
<span className="separator"> with <span className="separator-math">|{varname}| &ge; </span></span>
163+
<span className="separator">with<span className="separator-math">|{varname}| &ge; </span></span>
164164
<span className="min">
165165
<input
166166
type="number"

src/herbie/LocalError/newLocalError.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ function TreeRow({
118118
onClick={() => setIsExpanded(prev => !prev)}
119119
>
120120
{/* Show pipe lines for folding */}
121-
{depth > 0 && (
121+
{depth > 0 ? (
122122
<span className="pipe-lines" style={{ marginRight: '5px' }}>
123123
{Array(depth).fill(null).map((_, i) => (
124124
<span key={i} className="pipe-line" style={{ height: '20px', borderLeft: '1px solid gray', marginLeft: `${7.5 + (i > 0 ? 5 : 0) }px` }}></span>
125125
))}
126-
</span>
127-
)}
126+
</span>) : <span style={{ height: "14px", display: 'inline-block'}}></span>
127+
}
128128
{node.children.length > 0 ? (
129129
<span className="toggle-button">
130130
{isExpanded ? (

src/herbie/SpecComponent.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
font-family: "Ruda", sans-serif;
4343
}
4444

45+
.separator-math {
46+
padding-left: 5px;
47+
padding-right: 0px;
48+
}
49+
4550
.spec-range-input {
4651
display: flex;
4752
gap: 15px;

0 commit comments

Comments
 (0)