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.

settings: Fix labels using full width of the modal.

josephf1da8a91510a
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 9a41f0e9fdf..20d51d4e89e 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -391,6 +391,8 @@
.modal-field-label {
margin-bottom: var(--margin-bottom-field-description);
+ /* Avoid having the clickable area extend to the full width of the containing element */
+ width: fit-content;
}
.dropdown-widget-button {
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 277ae2009b9..b8530a80529 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1645,6 +1645,8 @@ $option_title_width: 180px;
.settings-field-label {
margin-bottom: var(--margin-bottom-field-description);
+ /* Avoid having the clickable area extend to the full width of the containing element */
+ width: fit-content;
}
.settings-profile-user-field-hint {
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index dd437e3ba29..ef9c48d6124 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -1192,6 +1192,11 @@ div.settings-radio-input-parent {
height: inherit;
}
+.group-setting-label {
+ /* Avoid having the clickable area extend to the full width of the containing element */
+ width: fit-content;
+}
+
@media (width < $lg_min) {
.user-groups-container,
.subscriptions-container {