mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
settings: Use HTML table for "Alert Words" for better icon alignment.
"Alert Words" is one of Zulip's oldest settings UI elements, and as a result is buggy. This commit converts it to use our standard progressive-table-wrapper system used for settings tables, which has the side effect of fixing a bug that mad ethe tables look pretty bad if one adds a very long word. Fixes #17172.
This commit is contained in:
@@ -136,11 +136,11 @@ run_test("remove_alert_word", (override) => {
|
||||
const remove_func = word_list.get_on_handler("click", ".remove-alert-word");
|
||||
|
||||
const remove_alert_word = $(".remove-alert-word");
|
||||
const list_item = $("li.alert-word-item");
|
||||
const list_item = $("tr.alert-word-item");
|
||||
const val_item = $("span.value");
|
||||
val_item.text(i18n.t("zot"));
|
||||
|
||||
remove_alert_word.set_parents_result("li", list_item);
|
||||
remove_alert_word.set_parents_result("tr", list_item);
|
||||
list_item.set_find_results(".value", val_item);
|
||||
|
||||
const event = {
|
||||
|
||||
Reference in New Issue
Block a user