Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/components/GradientInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface GradientInputProps {
};

const GradientInput = (props: GradientInputProps): JSX.Element => {
const { displayName, description, gradientOptions, defaultValue } = props;
const { displayName, gradientOptions, defaultValue } = props;
const selectedRecipeId = useSelectedRecipeId();
const editRecipe = useEditRecipe();
const getCurrentValue = useGetCurrentValue();
Expand Down Expand Up @@ -55,7 +55,6 @@ const GradientInput = (props: GradientInputProps): JSX.Element => {
<div className="input-switch">
<div className="input-label">
<strong>{displayName}</strong>
<small>{description}</small>
</div>
<div className="input-content">
<Select
Expand Down Expand Up @@ -85,11 +84,9 @@ const GradientInput = (props: GradientInputProps): JSX.Element => {
<div className="slider-labels">
<small className="slider-label-left">
<span>{gradientStrengthData.min}</span>
<span>weak</span>
</small>
<small className="slider-label-right" style={{ marginRight: "5px" }}>
<span>{gradientStrengthData.max}</span>
<span>strong</span>
</small>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/utils/gradient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ export function deriveGradientStrength(
? storeRaw
: opt.strength_default ?? storeMin;
const uiValue = round2(clampUi(storeNum));
const strengthDescription = opt.strength_description || "Smaller decay length indicates stronger bias"

return {
displayName: `Decay Length`,
description: "Higher values will increase the decay length",
description: strengthDescription,
path: opt.strength_path,
uiValue,
min: uiMin,
Expand Down