Skip to content

Commit

Permalink
fix(ui): Limit max width of forms & lists (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Feb 5, 2021
1 parent 026795d commit b9d14a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/components/Common/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ interface ListItemProps {

const ListItem: React.FC<ListItemProps> = ({ title, children }) => {
return (
<div className="py-4 sm:grid sm:grid-cols-3 sm:gap-4">
<dt className="block text-sm font-medium text-gray-400">{title}</dt>
<dd className="flex text-sm text-white sm:mt-0 sm:col-span-2">
<span className="flex-grow">{children}</span>
</dd>
<div>
<div className="max-w-6xl py-4 sm:grid sm:grid-cols-3 sm:gap-4">
<dt className="block text-sm font-medium text-gray-400">{title}</dt>
<dd className="flex text-sm text-white sm:mt-0 sm:col-span-2">
<span className="flex-grow">{children}</span>
</dd>
</div>
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ body {
}

.form-row {
@apply mt-6 sm:mt-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start;
@apply max-w-6xl mt-6 sm:mt-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start;
}

.form-input {
Expand Down

0 comments on commit b9d14a9

Please sign in to comment.