Merge pull request #831 from quantified-uncertainty/design-refactors-2020-July

Minor UI refactors
This commit is contained in:
Ozzie Gooen 2022-07-13 14:57:13 -07:00 committed by GitHub
commit fdf1da7886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -215,31 +215,31 @@ const ViewSettings: React.FC<{ register: UseFormRegister<FormFields> }> = ({
name="minX" name="minX"
type="number" type="number"
register={register} register={register}
label="The minimum of the charted distribution domain" label="Min X Value"
/> />
<InputItem <InputItem
name="maxX" name="maxX"
type="number" type="number"
register={register} register={register}
label="The maximum of the charted distribution domain" label="Max X Value"
/> />
<InputItem <InputItem
name="title" name="title"
type="text" type="text"
register={register} register={register}
label="The title shown on the distribution" label="Title"
/> />
<InputItem <InputItem
name="tickFormat" name="tickFormat"
type="text" type="text"
register={register} register={register}
label="The format that the ticks are rendered" label="Tick Format"
/> />
<InputItem <InputItem
name="color" name="color"
type="color" type="color"
register={register} register={register}
label="The color of the charted distribution" label="Color"
/> />
</div> </div>
</HeadedSection> </HeadedSection>
@ -521,7 +521,7 @@ export const SquigglePlayground: FC<PlaygroundProps> = ({
); );
const withEditor = ( const withEditor = (
<div className="flex mt-1"> <div className="flex mt-2">
<div className="w-1/2">{tabs}</div> <div className="w-1/2">{tabs}</div>
<div className="w-1/2 p-2 pl-4">{squiggleChart}</div> <div className="w-1/2 p-2 pl-4">{squiggleChart}</div>
</div> </div>

View File

@ -23,8 +23,8 @@ export const Toggle: React.FC<Props> = ({
layout layout
transition={{ duration: 0.2 }} transition={{ duration: 0.2 }}
className={clsx( className={clsx(
"rounded-full py-1 bg-indigo-500 text-white text-xs font-semibold flex items-center space-x-1", "rounded-md py-0.5 bg-slate-500 text-white text-xs font-semibold flex items-center space-x-1",
status ? "bg-indigo-500" : "bg-gray-400", status ? "bg-slate-500" : "bg-gray-400",
status ? "pl-1 pr-3" : "pl-3 pr-1", status ? "pl-1 pr-3" : "pl-3 pr-1",
!status && "flex-row-reverse space-x-reverse" !status && "flex-row-reverse space-x-reverse"
)} )}