diff --git a/client/goal-view-ui/src/components/atoms/Separator.module.css b/client/goal-view-ui/src/components/atoms/Separator.module.css index c45cd11a9..a8078998d 100644 --- a/client/goal-view-ui/src/components/atoms/Separator.module.css +++ b/client/goal-view-ui/src/components/atoms/Separator.module.css @@ -1,8 +1,8 @@ .Separator { - width: 90%; + width: 100%; height: 1px; margin-top: 6px; margin-bottom: 3px; - border-color: var(--vscode-coq-hypothesesSeparator); + border-top-color: var(--vscode-coq-hypothesesSeparator); border-top: 1px solid; } \ No newline at end of file diff --git a/client/goal-view-ui/src/components/molecules/CollapsibleGoalBlock.tsx b/client/goal-view-ui/src/components/molecules/CollapsibleGoalBlock.tsx index 0c21f5ae7..700262d57 100644 --- a/client/goal-view-ui/src/components/molecules/CollapsibleGoalBlock.tsx +++ b/client/goal-view-ui/src/components/molecules/CollapsibleGoalBlock.tsx @@ -1,26 +1,23 @@ import React, {FunctionComponent} from 'react'; -import {VSCodeButton} from '@vscode/webview-ui-toolkit/react'; -import {VscChevronDown} from 'react-icons/vsc'; import GoalBlock from './GoalBlock'; import Accordion from '../atoms/Accordion'; - -import classes from './GoalBlock.module.css'; import { CollapsibleGoal } from '../../types'; type CollapsibleGoalBlockProps = { goal: CollapsibleGoal collapseHandler: (id: string) => void, goalIndex: number + goalIndicator: string }; const collapsibleGoalBlock: FunctionComponent = (props) => { - const {goal, goalIndex, collapseHandler} = props; + const {goal, goalIndex, goalIndicator, collapseHandler} = props; return ( collapseHandler(goal.id)}> - + ); diff --git a/client/goal-view-ui/src/components/molecules/GoalBlock.module.css b/client/goal-view-ui/src/components/molecules/GoalBlock.module.css index af0139ea4..4254aceb5 100644 --- a/client/goal-view-ui/src/components/molecules/GoalBlock.module.css +++ b/client/goal-view-ui/src/components/molecules/GoalBlock.module.css @@ -2,6 +2,19 @@ width: 100%; } +.SeparatorZone { + width: 100%; + display: flex; + flex-direction: row; +} + +.GoalIndex { + color: var(--vscode-coq-goalId); + margin-right: 6px; + text-wrap: nowrap; + font-size: x-small; +} + .Header { display: flex; flex-direction: row; diff --git a/client/goal-view-ui/src/components/molecules/GoalBlock.tsx b/client/goal-view-ui/src/components/molecules/GoalBlock.tsx index c5f3ff826..efa84715b 100644 --- a/client/goal-view-ui/src/components/molecules/GoalBlock.tsx +++ b/client/goal-view-ui/src/components/molecules/GoalBlock.tsx @@ -11,15 +11,18 @@ import { Goal } from '../../types'; type GoalBlockProps = { goal: Goal + goalIndicator?: string }; const goalBlock: FunctionComponent = (props) => { - const {goal} = props; + const {goal, goalIndicator} = props; + const indicator = goalIndicator ? ({goalIndicator}) : null; return (
+
{indicator}
); diff --git a/client/goal-view-ui/src/components/molecules/HypothesesBlock.module.css b/client/goal-view-ui/src/components/molecules/HypothesesBlock.module.css index eb001ff54..0eb574e98 100644 --- a/client/goal-view-ui/src/components/molecules/HypothesesBlock.module.css +++ b/client/goal-view-ui/src/components/molecules/HypothesesBlock.module.css @@ -1,7 +1,7 @@ .Block { - border-bottom: 2pt solid; + /* border-bottom: 2pt solid; */ padding: 0pt; padding-bottom: 1em; margin: 0; - border-bottom-color: var(--vscode-coq-hypothesesSeparator); + /* border-bottom-color: var(--vscode-coq-hypothesesSeparator); */ } \ No newline at end of file diff --git a/client/goal-view-ui/src/components/organisms/GoalCollapsibles.tsx b/client/goal-view-ui/src/components/organisms/GoalCollapsibles.tsx index d4c5e21ce..2be39fa2e 100644 --- a/client/goal-view-ui/src/components/organisms/GoalCollapsibles.tsx +++ b/client/goal-view-ui/src/components/organisms/GoalCollapsibles.tsx @@ -22,7 +22,7 @@ const goalSection: FunctionComponent = (props) => { const scrollToBottomOfFirstGoal = () => { if(firstGoalRef.current) { firstGoalRef.current.scrollIntoView({ - behavior: "smooth", + // behavior: "smooth", block: "end", inline: "nearest" }); @@ -34,14 +34,14 @@ const goalSection: FunctionComponent = (props) => { if(index === 0) { return ( <> - +
); } return ( - + ); });