fix(ui): Limit max width of forms & lists (#845)

pull/848/head
TheCatLady 4 years ago committed by GitHub
parent 026795d4c9
commit b9d14a9fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,12 +7,14 @@ interface ListItemProps {
const ListItem: React.FC<ListItemProps> = ({ title, children }) => { const ListItem: React.FC<ListItemProps> = ({ title, children }) => {
return ( return (
<div className="py-4 sm:grid sm:grid-cols-3 sm:gap-4"> <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> <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"> <dd className="flex text-sm text-white sm:mt-0 sm:col-span-2">
<span className="flex-grow">{children}</span> <span className="flex-grow">{children}</span>
</dd> </dd>
</div> </div>
</div>
); );
}; };

@ -50,7 +50,7 @@ body {
} }
.form-row { .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 { .form-input {

Loading…
Cancel
Save