Don't let Weapon combobox weapon names wrap

This commit is contained in:
Kalle
2023-01-17 21:59:21 +02:00
parent 7f4a182ba5
commit 9f59864012
7 changed files with 16 additions and 8 deletions

View File

@@ -176,7 +176,7 @@ export default function BuildAnalyzerPage() {
newMainWeaponId: Number(opt.value) as MainWeaponId,
})
}
className="w-full-important"
fullWidth
clearsInputOnFocus
/>
</div>

View File

@@ -10,6 +10,10 @@
gap: var(--s-5);
}
.object-damage__selects__weapon {
width: 16rem;
}
.object-damage__ability {
position: absolute;
}

View File

@@ -71,7 +71,7 @@ export default function ObjectDamagePage() {
<Main className="stack lg">
<div className="object-damage__controls">
<div className="object-damage__selects">
<div>
<div className="object-damage__selects__weapon">
<Label htmlFor="weapon">{t("analyzer:labels.weapon")}</Label>
<WeaponCombobox
id="weapon"
@@ -83,7 +83,7 @@ export default function ObjectDamagePage() {
newMainWeaponId: Number(opt.value) as MainWeaponId,
})
}
className="w-full-important"
fullWidth
clearsInputOnFocus
/>
</div>

View File

@@ -188,7 +188,7 @@ export default function NewBuildPage() {
const { t } = useTranslation();
return (
<div className="half-width">
<div className="half-width u__build-form">
<Form className="stack md items-start" method="post">
{buildToEdit && (
<input type="hidden" name="buildToEditId" value={buildToEdit.id} />

View File

@@ -166,7 +166,7 @@ textarea:not(.plain, [name="text"]):focus-within {
}
input:not(.plain, [type="radio"]) {
width: 12rem;
width: var(--input-width, 12rem);
}
input:not(.plain) {
@@ -543,7 +543,7 @@ dialog::backdrop {
}
.combobox-input {
width: 12rem;
width: var(--input-width, 12rem);
}
.combobox-input.fullWidth {
@@ -553,7 +553,7 @@ dialog::backdrop {
.combobox-options {
position: absolute;
z-index: 2;
width: 12rem;
width: var(--input-width, 12rem);
border-radius: var(--rounded);
margin-top: var(--s-2);
background-color: var(--bg-darker);

View File

@@ -83,7 +83,7 @@
}
.plus__modal-textarea {
width: 100%;
width: 100% !important;
resize: none;
}

View File

@@ -226,3 +226,7 @@
border-radius: 100%;
background-color: var(--bg-lighter);
}
.u__build-form {
--input-width: min(18rem, 75vw);
}