Skip to content

Commit

Permalink
feat: problem detail style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Elscrux committed Oct 11, 2024
1 parent d99fad4 commit 71ded9e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/solvers/Graph/ProblemDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ export const ProblemDetails = (props: { problemDto: ProblemDto<any> }) => {
</Text>
{solver && (
<VStack width="100%" align="stretch">
<Text>
<b>Solver Settings:</b>{" "}
</Text>
<Text fontWeight="bold">Solver Settings:</Text>
<SettingsView
problemDto={props.problemDto}
settingsChanged={(settings) => {
Expand All @@ -83,7 +81,7 @@ export const ProblemDetails = (props: { problemDto: ProblemDto<any> }) => {
<b>No subroutines</b>
) : (
<VStack width="100%" align="stretch">
<Text>Sub Routines:</Text>
<Text fontWeight="bold">Sub Routines:</Text>
<Accordion>
{props.problemDto.subProblems.map((subProblem) =>
getAccordionItem(
Expand All @@ -95,7 +93,10 @@ export const ProblemDetails = (props: { problemDto: ProblemDto<any> }) => {
</VStack>
)}
{props.problemDto.solution !== null && (
<SolutionView solution={props.problemDto.solution} />
<VStack width="100%" align="stretch">
<Text fontWeight="bold">Solution:</Text>
<SolutionView solution={props.problemDto.solution} />
</VStack>
)}
</VStack>
);
Expand Down

0 comments on commit 71ded9e

Please sign in to comment.