updated padding across cards and forms

This commit is contained in:
2025-09-26 13:58:14 +01:00
parent 6773b82349
commit c3d273f29d
19 changed files with 26 additions and 26 deletions

View File

@@ -4,7 +4,7 @@ import BearerTypeFields from "./BearerTypeFields";
const BearerTypeCard = () => {
return (
<Card>
<Card className="p-4">
<CardHeader title="Bearer Type" />
<BearerTypeFields />
</Card>

View File

@@ -9,7 +9,7 @@ const BearerTypeFields = () => {
useFormikContext();
return (
<div className="flex flex-col space-y-4">
<div className="flex flex-col space-y-4 px-2">
<div className="flex items-center gap-3 justify-between">
<label htmlFor="format">Format</label>
<Field

View File

@@ -4,7 +4,7 @@ import ChannelFields from "./ChannelFields";
const ChannelCard = () => {
return (
<Card>
<Card className="p-4">
<CardHeader title="Channel 1 (JSON)" />
<ChannelFields />
</Card>

View File

@@ -8,7 +8,7 @@ const ChannelFields = () => {
useFormikContext();
const [showPwd, setShowPwd] = useState(false);
return (
<div className="flex flex-col space-y-2">
<div className="flex flex-col space-y-2 px-2">
<FormGroup>
<label htmlFor="backoffice" className="m-0">
Back Office URL

View File

@@ -5,7 +5,7 @@ import NPEDIcon from "/NPED.svg";
const NPEDCard = () => {
return (
<Card>
<Card className="p-4">
<CardHeader title={"NPED Config"} img={NPEDIcon} />
<NPEDFields />
</Card>

View File

@@ -56,7 +56,7 @@ const NPEDFields = () => {
enableReinitialize
>
{({ errors, touched }) => (
<Form className="flex flex-col space-y-5">
<Form className="flex flex-col space-y-5 px-2">
<FormGroup>
<label htmlFor="username">Username</label>
{touched.username && errors.username && (

View File

@@ -26,7 +26,7 @@ const NPEDHotlist = () => {
<Formik initialValues={initialValue} onSubmit={handleSubmit}>
{({ setFieldValue, setErrors, errors }) => {
return (
<Form className="flex flex-col space-y-2">
<Form className="flex flex-col space-y-2 px-2">
<input
type="file"
name="file"

View File

@@ -4,7 +4,7 @@ import NPEDHotlist from "./NPEDHotlist";
const NPEDHotlistCard = () => {
return (
<Card>
<Card className="p-4">
<CardHeader title={" Hotlist file upload"} />
<NPEDHotlist />
</Card>

View File

@@ -4,7 +4,7 @@ import OverviewTextFields from "./OverviewTextFields";
const OverviewTextCard = () => {
return (
<Card>
<Card className="p-4">
<CardHeader title={"Overview Text"} />
<OverviewTextFields />
</Card>

View File

@@ -6,7 +6,7 @@ const OverviewTextFields = () => {
useFormikContext();
return (
<div className="flex flex-col space-y-2">
<div className="flex flex-col space-y-2 px-2">
<FormGroup>
<label htmlFor="overviewQuality">Include VRM</label>
<FormToggle name="includeVRM" />

View File

@@ -4,7 +4,7 @@ import SightingDataFields from "./SightingDataFields";
const SightingDataCard = () => {
return (
<Card>
<Card className="p-4">
<CardHeader title={"Sighting Data"} />
<SightingDataFields />
</Card>

View File

@@ -6,7 +6,7 @@ const SightingDataFields = () => {
useFormikContext();
return (
<div className="flex flex-col space-y-2">
<div className="flex flex-col space-y-2 px-2">
<FormGroup>
<label htmlFor="overviewQuality">Overview Quality</label>
<Field

View File

@@ -4,7 +4,7 @@ import SystemConfigFields from "./SystemConfigFields.tsx";
const SystemCard = () => {
return (
<Card>
<Card className="p-4">
<CardHeader title={"System Config"} />
<SystemConfigFields />
</Card>

View File

@@ -38,7 +38,7 @@ const SystemConfigFields = () => {
validateOnBlur
>
{({ values, errors, touched }) => (
<Form className="flex flex-col space-y-5">
<Form className="flex flex-col space-y-5 px-2">
<FormGroup>
<label
htmlFor="deviceName"

View File

@@ -11,9 +11,9 @@ const ModemCard = () => {
return (
// TODO: Add switch for Auto vs Manual settings
<Card>
<Card className="p-4">
<CardHeader title={"Modem"} />
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-4 px-2">
<FormGroup>
<label
htmlFor="apn"

View File

@@ -9,9 +9,9 @@ const WiFiCard = () => {
const [encryption, setEncryption] = useState("WPA2");
return (
<Card className="mb-4">
<Card className="p-4">
<CardHeader title={"WiFi"} />
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-4 px-2">
<FormGroup>
<label
htmlFor="ssid"