From b0bdb3ddb6bb5d10a644cc6f7cdb5da047e8c682 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alexander.rose@weirdbyte.de> Date: Sat, 20 Mar 2021 23:52:23 -0700 Subject: [PATCH] tweak param help --- src/mol-plugin-ui/controls/parameters.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mol-plugin-ui/controls/parameters.tsx b/src/mol-plugin-ui/controls/parameters.tsx index fb414d4d1..a0643fe74 100644 --- a/src/mol-plugin-ui/controls/parameters.tsx +++ b/src/mol-plugin-ui/controls/parameters.tsx @@ -240,8 +240,8 @@ function renderSimple(options: { props: ParamProps<any>, state: { showHelp: bool const help = props.param.help ? props.param.help(props.value) : { description: props.param.description, legend: props.param.legend }; - const desc = props.param.description; const hasHelp = help.description || help.legend; + const desc = label + (hasHelp ? '. Click for help.' : ''); return <> <ControlRow className={className} -- GitLab