AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): Fix toggle input label & time picker margin
Zamil Majdy378f49a2d93b
diff --git a/autogpt_platform/frontend/src/components/type-based-input.tsx b/autogpt_platform/frontend/src/components/type-based-input.tsxindex 461dfe6b54..fff5bf8d7c 100644--- a/autogpt_platform/frontend/src/components/type-based-input.tsx+++ b/autogpt_platform/frontend/src/components/type-based-input.tsx@@ -85,9 +85,11 @@ export const TypeBasedInput: FC<case DataType.BOOLEAN:innerInputElement = (<>- <span className="text-sm text-gray-500">{placeholder}</span>+ <span className="text-sm text-gray-500">+ {placeholder || (value ? "Enabled" : "Disabled")}+ </span><Switch- className={placeholder ? "ml-auto" : "mx-auto"}+ className="ml-auto"checked={!!value}onCheckedChange={(checked) => onChange(checked)}{...props}@@ -254,7 +256,7 @@ export function TimePicker({ value, onChange }: TimePickerProps) {onValueChange={(val) => changeTime(val, minute, meridiem)}><SelectTrigger- className={cn("agpt-border-input text-center", inputClasses)}+ className={cn("agpt-border-input ml-1 text-center", inputClasses)}><SelectValue /></SelectTrigger>