Skip to content

Commit

Permalink
fix(ui): Restore original port input size (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Feb 2, 2021
1 parent 7c192d5 commit 1ccafc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Settings/RadarrModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ const RadarrModal: React.FC<RadarrModalProps> = ({
name="port"
type="text"
placeholder="7878"
className="port"
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
setIsValidated(false);
setFieldValue('port', e.target.value);
Expand Down
1 change: 1 addition & 0 deletions src/components/Settings/SettingsPlex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
id="port"
name="port"
placeholder="32400"
className="port"
/>
</div>
{errors.port && touched.port && (
Expand Down
1 change: 1 addition & 0 deletions src/components/Settings/SonarrModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
name="port"
type="text"
placeholder="8989"
className="port"
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
setIsValidated(false);
setFieldValue('port', e.target.value);
Expand Down
4 changes: 4 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ select.rounded-r-only {
@apply rounded-l-none;
}

input.port {
@apply w-24;
}

.protocol {
@apply inline-flex items-center px-3 text-gray-100 bg-gray-600 border border-r-0 border-gray-500 cursor-default rounded-l-md sm:text-sm;
}
Expand Down

0 comments on commit 1ccafc0

Please sign in to comment.