streams: Rename radio-input-parent class to settings-radio-input-parent.

This commit renames the radio-input-parent class for parent div of
stream privacy radio inputs to settings-radio-input-parent.

This change is done so that we can use this same class name for adding
other similarly styled radio inputs to be used in settings in future.
This commit is contained in:
Sahil Batra 2022-11-30 15:10:53 +05:30 committed by Tim Abbott
parent 8f149750f3
commit f8065dcd3d
4 changed files with 8 additions and 8 deletions

View File

@ -1026,18 +1026,18 @@ export function update_web_public_stream_privacy_option_state($container) {
$web_public_stream_elem.prop("disabled", true);
return;
}
$web_public_stream_elem.closest(".radio-input-parent").hide();
$web_public_stream_elem.closest(".settings-radio-input-parent").hide();
$container
.find(".stream-privacy-values .radio-input-parent:visible")
.find(".stream-privacy-values .settings-radio-input-parent:visible")
.last()
.css("border-bottom", "none");
} else {
if (!$web_public_stream_elem.is(":visible")) {
$container
.find(".stream-privacy-values .radio-input-parent:visible")
.find(".stream-privacy-values .settings-radio-input-parent:visible")
.last()
.css("border-bottom", "");
$web_public_stream_elem.closest(".radio-input-parent").show();
$web_public_stream_elem.closest(".settings-radio-input-parent").show();
}
$web_public_stream_elem.prop(
"disabled",

View File

@ -767,8 +767,8 @@
.member-list-box,
.member-list-box .member_list_container .member-list tr,
#subscription_overlay .subsection-parent div,
#subscription_overlay .radio-input-parent,
#stream_privacy_modal .radio-input-parent,
#subscription_overlay .settings-radio-input-parent,
#stream_privacy_modal .settings-radio-input-parent,
#settings_page .sidebar-wrapper,
#settings_page .sidebar-wrapper *,
table,

View File

@ -966,7 +966,7 @@ h4.user_group_setting_subsection_title {
.input-group {
margin-bottom: 10px;
.radio-input-parent {
.settings-radio-input-parent {
border-bottom: 1px solid hsl(0, 0%, 87%);
margin: 2px 0 2px 5px;
padding: 2px 0;

View File

@ -4,7 +4,7 @@
{{> ../help_link_widget link="/help/stream-permissions" }}
</label>
{{#each stream_privacy_policy_values}}
<div class="radio-input-parent">
<div class="settings-radio-input-parent">
<label class="radio">
<input type="radio" name="privacy" value="{{ this.code }}" {{#if (eq this.code ../stream_privacy_policy) }}checked{{/if}} />
<b>{{ this.name }}:</b> {{ this.description }}