mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 13:13:54 +08:00
[ui][text input] change pl to px for startAddOn
This commit is contained in:
@ -154,14 +154,14 @@ function TextInput(
|
||||
switch (startAddOnType) {
|
||||
case 'label':
|
||||
return (
|
||||
<div className="pointer-events-none flex items-center pl-3 text-slate-500">
|
||||
<div className="pointer-events-none flex items-center px-2 text-slate-500">
|
||||
{startAddOn}
|
||||
</div>
|
||||
);
|
||||
case 'icon': {
|
||||
const StartAddOn = startAddOn;
|
||||
return (
|
||||
<div className="pointer-events-none flex items-center pl-3">
|
||||
<div className="pointer-events-none flex items-center px-2">
|
||||
<StartAddOn
|
||||
aria-hidden="true"
|
||||
className="h-5 w-5 text-slate-400"
|
||||
|
Reference in New Issue
Block a user