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 {
716 </label>716 </label>
717 </div>717 </div>
718 <div class="panel-foot">718 <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>
720 <Show when=saved>722 <Show when=saved>
721 <span class="field-note">"Saved."</span>723 <span class="field-note">"Saved."</span>
722 </Show>724 </Show>
723- <Show when=move || refusal().is_some()>725+ <button class="primary" type="submit">"Save"</button>
724- <span class="field-refusal">{move || refusal()}</span>
725- </Show>
726 </div>726 </div>
727 </ActionForm>727 </ActionForm>
728 </div>728 </div>