diff --git a/source/components/Documentation/References.css b/source/components/Documentation/References.css index 511940ab2..dcaaebc3d 100644 --- a/source/components/Documentation/References.css +++ b/source/components/Documentation/References.css @@ -4,6 +4,7 @@ } .references a { flex: 1; + min-width: 45%; text-decoration: underline; } @@ -18,7 +19,7 @@ font-style: italic; } .references .imageWrapper { - width: 6rem; + width: 4.5rem; height: 3rem; display: flex; align-items: center; diff --git a/source/components/StackedBarChart.tsx b/source/components/StackedBarChart.tsx index eb1bf3110..cee6f01a8 100644 --- a/source/components/StackedBarChart.tsx +++ b/source/components/StackedBarChart.tsx @@ -123,7 +123,7 @@ export function StackedBarChart({ data }: StackedBarChartProps) { {dataWithPercentage.map(({ key, percentage, color, legend }) => ( - {legend} + {legend} {percentage} % ))} diff --git a/source/components/TargetSelection.css b/source/components/TargetSelection.css index 2b7fde3c5..d9ff00859 100644 --- a/source/components/TargetSelection.css +++ b/source/components/TargetSelection.css @@ -69,7 +69,7 @@ text-decoration: underline; } -@media (min-width: 800px) { +@media (min-width: 660px) { #targetSelection { font-size: 115%; } @@ -132,7 +132,7 @@ } .light #targetSelection .optionTitle { - color: var(--darkestColor); + color: var(--darkColor); } #targetSelection .editableTarget { diff --git a/source/components/conversation/AnswerList.tsx b/source/components/conversation/AnswerList.tsx index 3ce6972d1..12dcae1a4 100644 --- a/source/components/conversation/AnswerList.tsx +++ b/source/components/conversation/AnswerList.tsx @@ -91,7 +91,6 @@ function StepsTable({ -
+
+
{ @@ -51,17 +51,15 @@ export default function DateInput({ }} onSecondClick={() => onSubmit?.('suggestion')} /> -
-
- {onSubmit && }
- + {onSubmit && } +
) } diff --git a/source/components/conversation/Input.js b/source/components/conversation/Input.js index 64a846358..2e268c480 100644 --- a/source/components/conversation/Input.js +++ b/source/components/conversation/Input.js @@ -26,7 +26,7 @@ export default function Input({ return (
-
+
{ @@ -35,9 +35,6 @@ export default function Input({ onSecondClick={() => onSubmit && onSubmit('suggestion')} unit={unit} /> -
- -
{serializeUnit(unit, value, language)} - {onSubmit && ( - - )}
+ {onSubmit && ( + + )}
) } diff --git a/source/components/conversation/InputSuggestions.tsx b/source/components/conversation/InputSuggestions.tsx index 75290bdcc..a90c036e8 100644 --- a/source/components/conversation/InputSuggestions.tsx +++ b/source/components/conversation/InputSuggestions.tsx @@ -11,19 +11,23 @@ type InputSuggestionsProps = { } export default function InputSuggestions({ - suggestions, + suggestions = {}, onSecondClick = x => x, onFirstClick, unit }: InputSuggestionsProps) { const [suggestion, setSuggestion] = useState() const { t } = useTranslation() - if (!suggestions) return null return ( -
- Suggestions : - +
{toPairs(suggestions).map(([text, value]: [string, number]) => { const valueWithUnit: string = `${value} ${ unit ? serializeUnit(unit)?.replace(' / ', '/') : '' @@ -32,7 +36,12 @@ export default function InputSuggestions({