Skip to content

Commit

Permalink
fixing alignment of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Petrucci committed Nov 14, 2023
1 parent e06c267 commit 08e4335
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/Board/ProgressNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ProgressNode = ({data}: any) => {
<Card
sx={{
height: "100%", display: "flex", flexDirection: "column",
border: !isExecuting() ? ("2px solid") : "none",
border: !isExecuting() ? ("2px solid") : "none", alignItems: "center",
borderColor: !isExecuting() ? (getStatus() === RunState.FINISHED ? "success.main" :
getStatus() === RunState.ERROR ? "error.main" :
(colorMode === "light" ? lightgrey : darkgrey)) : "none",
Expand Down
9 changes: 8 additions & 1 deletion webapp/src/pages/Showcase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ const isSmartphone = (): boolean => {
return window.innerWidth < 600;
}

const removeInitialLineBreak = (text: string) => {
if (text.startsWith('\n')) {
return text.substring(1);
}
return text;
}

const Showcase: React.FC<{ mobileOpen: boolean }> = ({mobileOpen}) => {
const params = useParams();
const navigate = useNavigate();
Expand Down Expand Up @@ -104,7 +111,7 @@ const Showcase: React.FC<{ mobileOpen: boolean }> = ({mobileOpen}) => {
multiline
rows={10}
fullWidth
value={description ? description.description : ''}
value={description ? removeInitialLineBreak(description.description) : ''}
variant={"outlined"}
disabled
/>
Expand Down

0 comments on commit 08e4335

Please sign in to comment.