I’m using 4 Ion-Inputs in a list. I want to line up all of the input values so it’s clean. That would mean updating the width of the label portion of the Ion-Input. Using class or inline styling, how can I change the width of the label of an Ion-Input?
<IonCard>
<IonCardHeader>
<IonCardTitle>Cache Settings</IonCardTitle>
<IonCardSubtitle>* in minutes</IonCardSubtitle>
</IonCardHeader>
<IonCardContent>
<IonList>
<IonItem>
<IonInput
label="Volunteer List:"
labelPlacement="start"
type="number"
inputMode="numeric"
required
min={5}
value={volunteerListExpiration}
onIonChange={(e: any) =>
handleSaveExpiration("volunteer", e.detail.value)
}
/>
</IonItem>
<IonItem>
<IonInput
label="Family List:"
labelPlacement="start"
type="number"
inputMode="numeric"
required
min={5}
value={familyListExpiration}
onIonChange={(e: any) =>
handleSaveExpiration("family", e.detail.value)
}
/>
</IonItem>
<IonItem>
<IonInput
label="Community List:"
labelPlacement="start"
type="number"
inputMode="numeric"
required
min={5}
value={communityListExpiration}
onIonChange={(e: any) =>
handleSaveExpiration("community", e.detail.value)
}
/>
</IonItem>
<IonItem>
<IonInput
label="Campaign List:"
labelPlacement="start"
type="number"
inputMode="numeric"
required
min={5}
value={campaignListExpiration}
onIonChange={(e: any) =>
handleSaveExpiration("campaign", e.detail.value)
}
/>
</IonItem>
</IonList>
</IonCardContent>
</IonCard>