Fixed send email checkbox label clickiness

This commit is contained in:
Kevin Ansfield 2019-11-06 16:01:37 +07:00
parent c32c3ce444
commit 03547df97e
2 changed files with 10 additions and 6 deletions

View File

@ -230,5 +230,6 @@
}
.gh-publishmenu-email-label {
display: block;
margin-left: 12px;
}
}

View File

@ -24,20 +24,23 @@
<div class="gh-publishmenu-radio-desc">Set automatic future publish date</div>
</div>
</div>
{{#if this.feature.labs.members}}
{{#if (and this.feature.labs.members (eq this.post.displayName "post"))}}
<div class="gh-publishmenu-radio">
{{#if this.backgroundLoader.isRunning}}
<div class="gh-loading-spinner" style="zoom: 50%"></div>
{{else}}
{{#unless this.deliveredAction}}
<div class="for-checkbox">
<label class="checkbox" for="email-when-published-checkbox">
<div class="checkbox" for="email-when-published-checkbox">
<Input @checked={{this.sendEmailWhenPublished}} @type="checkbox" @id="email-when-published-checkbox" @name="email-when-published" @disabled={{disableEmailOption}} />
<span class="input-toggle-component gh-publishmenu-email-checkbox"></span>
</label>
<span
class="input-toggle-component gh-publishmenu-email-checkbox"
{{on "click" (toggle "sendEmailWhenPublished" this)}}
></span>
</div>
</div>
<div class="gh-publishmenu-email-label">
<div class="gh-publishmenu-radio-label">Email post</div>
<label class="gh-publishmenu-radio-label" for="email-when-published-checkbox">Email post</label>
{{#if this.memberCount}}
<div class="gh-publishmenu-radio-desc">Send post to {{this.memberCount}} members when published</div>
{{else}}