Skip to content

Commit

Permalink
Monospace pipes and toggles to fix styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodwyer committed Jan 8, 2025
1 parent 6cac6c1 commit 8f74648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 4 additions & 3 deletions assets/src/scripts/components/DescendantToggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import React from "react";

function DescendantToggle({ isExpanded, path, toggleVisibility }) {
return (
<span
<button
className="p-0 bg-white border-0 text-monospace d-inline-block ml-1 mr-2"
onClick={toggleVisibility.bind(null, path)}
style={{ cursor: "pointer", marginLeft: "2px", marginRight: "4px" }}
type="button"
>
{" "}
{isExpanded ? "⊟" : "⊞"}
</span>
</button>
);
}

Expand Down
8 changes: 1 addition & 7 deletions assets/src/scripts/components/Pipes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ function Pipes({ pipes }) {
return pipes.map((pipe, ix) => (
<span
key={ix}
style={{
display: "inline-block",
textAlign: "center",
paddingLeft: "3px",
paddingRight: "6px",
width: "20px",
}}
className="d-inline-block pl-1 pr-2 text-center text-monospace"
>
{pipe}
</span>
Expand Down

0 comments on commit 8f74648

Please sign in to comment.