Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

styles: Replace deprecated word-break: break-word with overflow-wrap.

Anders Kaseorg8f173b0fdf6c
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index 4fc67dc39f0..1b277af5761 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -270,7 +270,7 @@
/* 20px at 18px/1em */
line-height: 1.1111em;
color: var(--color-text-full-name);
- word-break: break-word;
+ overflow-wrap: anywhere;
}
.popover-group-menu-description {
@@ -1028,7 +1028,7 @@ ul.popover-group-menu-member-list {
/* 20px at 18px/1em */
line-height: 1.1111em;
color: var(--color-text-full-name);
- word-break: break-word;
+ overflow-wrap: anywhere;
user-select: text;
.zulip-icon.zulip-icon-bot {
@@ -1123,7 +1123,7 @@ ul.popover-group-menu-member-list {
line-height: 1.1111em;
color: var(--color-text-full-name) !important;
max-width: 150px;
- word-break: break-word;
+ overflow-wrap: anywhere;
}
.user-type {
diff --git a/web/styles/portico/portico_signin.css b/web/styles/portico/portico_signin.css
index 48da0998680..fd2be6963c6 100644
--- a/web/styles/portico/portico_signin.css
+++ b/web/styles/portico/portico_signin.css
@@ -830,7 +830,7 @@ html {
.confirm-email-change-page .white-box {
max-width: 500px;
- word-break: break-word;
+ overflow-wrap: anywhere;
}
.anonymous_access_form {
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index 442df35aeee..459871cbf83 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -79,7 +79,7 @@
}
.white-space-preserve-wrap {
- word-break: break-word;
+ overflow-wrap: anywhere;
}
.empty-table-message {
@@ -458,7 +458,7 @@
}
& a {
- word-break: break-word;
+ overflow-wrap: anywhere;
hyphens: auto;
}
}
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
index 7da59680336..48c15411f5a 100644
--- a/web/styles/rendered_markdown.css
+++ b/web/styles/rendered_markdown.css
@@ -524,7 +524,7 @@
border: 1px solid hsl(0deg 0% 87%);
padding: 0.5em 0.75em;
margin-bottom: 0.25em;
- word-break: break-word;
+ overflow-wrap: anywhere;
min-height: 48px;
}
diff --git a/web/styles/search.css b/web/styles/search.css
index 99b790b8011..a02e47bbd3d 100644
--- a/web/styles/search.css
+++ b/web/styles/search.css
@@ -378,6 +378,6 @@
/* Break really long words (unlikely to happen). */
.search_list_item span {
- word-break: break-word;
+ overflow-wrap: anywhere;
}
}
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 5fa3a9760ae..c4be5ea4876 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -158,7 +158,7 @@ h3,
}
.wrapped-table {
- word-break: break-word;
+ overflow-wrap: anywhere;
word-wrap: break-word;
white-space: pre-wrap;
white-space: normal;
@@ -555,7 +555,7 @@ input[type="checkbox"] {
}
.alert_word_status_text {
- word-break: break-word;
+ overflow-wrap: anywhere;
}
.alert-notification {
diff --git a/web/styles/typeahead.css b/web/styles/typeahead.css
index 6375996810e..c3baf60181e 100644
--- a/web/styles/typeahead.css
+++ b/web/styles/typeahead.css
@@ -18,7 +18,7 @@
min-width: max-content;
& > li {
- word-break: break-word;
+ overflow-wrap: anywhere;
& > a {
display: flex;