Skip to content

Commit

Permalink
feat(config): update page layout, limit the max width of the container
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 16, 2023
1 parent 97ea63c commit d059ea8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ const DNSQueryForm = () => {

return (
<div class="flex flex-col">
<form use:form={form} class="flex flex-col gap-2 sm:flex-row">
<form use:form={form} class="flex gap-2 sm:flex-row">
<input
type="search"
name="name"
class="input input-bordered w-full sm:flex-1"
class="input input-bordered min-w-0 flex-1"
/>

<div class="flex items-center gap-2">
Expand Down Expand Up @@ -114,7 +114,7 @@ const ConfigForm = () => {
const [t] = useI18n()
const navigate = useNavigate()

const portsList = [
const portList = [
{
label: 'HTTP Port',
key: 'port',
Expand Down Expand Up @@ -197,10 +197,10 @@ const ConfigForm = () => {
<option value={MODE_OPTIONS.Direct}>{t('direct')}</option>
</select>

<form class="contents" use:form={form}>
<For each={portsList}>
<form class="grid grid-cols-2 gap-2" use:form={form}>
<For each={portList}>
{(item) => (
<div class="form-control w-64 max-w-sm">
<div class="form-control">
<label class="label">
<span class="label-text">{item.label}</span>
</label>
Expand Down Expand Up @@ -357,7 +357,7 @@ const Versions = () => {

export default () => {
return (
<div class="flex flex-col gap-4">
<div class="mx-auto flex w-full max-w-screen-md flex-col gap-4">
<DNSQueryForm />
<ConfigForm />
<ConfigForXd />
Expand Down

0 comments on commit d059ea8

Please sign in to comment.