Fix button rounding in mute settings

This commit is contained in:
Andreas Nedbal 2024-01-14 15:13:37 +01:00 committed by Andreas Nedbal
parent f4a08787ab
commit c7542e005c
3 changed files with 9 additions and 5 deletions

View File

@ -29,3 +29,9 @@
.form-check-input:focus {
box-shadow: rgba(var(--primary-rgb), 0.25) 0 0 0 0.25rem;
}
.input-group .button_to .btn {
margin-left: -1px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}

View File

@ -2,5 +2,4 @@
%form{ action: settings_muted_path, method: "post" }
.input-group
%input.form-control#muted-phrase{ name: :muted_phrase, placeholder: t(".placeholder"), required: true, minlength: 1, data: { controller: :autofocus } }
.input-group-append
%button.btn.btn-primary{ type: "submit" }= t("voc.add")
%button.btn.btn-primary{ type: "submit" }= t("voc.add")

View File

@ -1,6 +1,5 @@
.form-group.mb-3{ id: "rule_#{rule.id}" }
.input-group
%input.form-control{ disabled: true, value: rule.muted_phrase }
.input-group-append
= button_to settings_muted_destroy_path(rule.id), method: :delete, class: "btn btn-danger" do
= t("voc.remove")
= button_to settings_muted_destroy_path(rule.id), method: :delete, class: "btn btn-danger" do
= t("voc.remove")