forge
Explore
Log in

Don't you dare go Hollow

The sender panel's save button is the one the rest of Settings uses

Browse files at this commit

8462f29d7562fc4273bb7792535375ce80487af3Ahmet Kaan GümüşParent: fd45c3d
  • fix
    • the sender panel's save button is the one the rest of Settings uses
Show full message
💄 fix(settings): the sender panel's save button is the one the rest of Settings uses

Its markup named two classes the stylesheet has never had —
`button button-primary` and `field-refusal` — so the button rendered as the
browser's default grey rectangle beside the styled Save of every neighbouring
panel, and a refusal would have arrived unstyled. Both become the classes that
exist, and the foot puts the message before the button the way the profile and
limits panels do.
crates/dizey-web/src/settings.rsmodified+4 -4
@@ -716,13 +716,13 @@ fn SenderPanel(sender: Sender, on_change: Callback<()>) -> impl IntoView {
716716 </label>
717717 </div>
718718 <div class="panel-foot">
719- <button class="button button-primary" type="submit">"Save"</button>
719+ <Show when=move || refusal().is_some()>
720+ <span class="field-error">{move || refusal()}</span>
721+ </Show>
720722 <Show when=saved>
721723 <span class="field-note">"Saved."</span>
722724 </Show>
723- <Show when=move || refusal().is_some()>
724- <span class="field-refusal">{move || refusal()}</span>
725- </Show>
725+ <button class="primary" type="submit">"Save"</button>
726726 </div>
727727 </ActionForm>
728728 </div>