mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 23:26:15 -05:00
Don't let Weapon combobox weapon names wrap
This commit is contained in:
@@ -176,7 +176,7 @@ export default function BuildAnalyzerPage() {
|
||||
newMainWeaponId: Number(opt.value) as MainWeaponId,
|
||||
})
|
||||
}
|
||||
className="w-full-important"
|
||||
fullWidth
|
||||
clearsInputOnFocus
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
gap: var(--s-5);
|
||||
}
|
||||
|
||||
.object-damage__selects__weapon {
|
||||
width: 16rem;
|
||||
}
|
||||
|
||||
.object-damage__ability {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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} />
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
}
|
||||
|
||||
.plus__modal-textarea {
|
||||
width: 100%;
|
||||
width: 100% !important;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -226,3 +226,7 @@
|
||||
border-radius: 100%;
|
||||
background-color: var(--bg-lighter);
|
||||
}
|
||||
|
||||
.u__build-form {
|
||||
--input-width: min(18rem, 75vw);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user