Added percentage to email rate in members filter

This commit is contained in:
Peter Zimon 2021-09-10 15:32:03 +02:00
parent 4bf2702570
commit 6b878c6724
2 changed files with 32 additions and 7 deletions

View File

@ -41,13 +41,16 @@
/>
{{else if (eq @filter.type 'email_open_rate')}}
<GhTextInput
@value={{@filter.value}}
@type="number"
@focus-out={{fn this.updateInputFilterValue @filter.type @filter.id}}
@keyPress={{fn this.updateInputFilterValueOnEnter @filter.type @filter.id}}
@input={{fn this.setInputFilterValue @filter.type @filter.id}}
/>
<div class="relative">
<span class="gh-input-percentage-label">%</span>
<GhTextInput
@value={{@filter.value}}
@type="number"
@focus-out={{fn this.updateInputFilterValue @filter.type @filter.id}}
@keyPress={{fn this.updateInputFilterValueOnEnter @filter.type @filter.id}}
@input={{fn this.setInputFilterValue @filter.type @filter.id}}
/>
</div>
{{else if (eq @filter.type 'subscriptions.plan_interval')}}
<span class="gh-select">

View File

@ -35,6 +35,18 @@ input {
user-select: text;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
appearance: none;
margin: 0;
display: none;
}
input[type=number] {
appearance: textfield;
}
::-webkit-input-placeholder {
color: var(--midlightgrey);
font-weight: 400;
@ -236,6 +248,16 @@ textarea {
opacity: 1.0;
}
.gh-input-percentage-label {
display: block;
content: "hello";
position: absolute;
right: 10px;
top: 6px;
font-size: 1.3rem;
color: var(--midgrey);
}
/* Radio / Checkboxes
/* ---------------------------------------------------------- */