Update Filter.tsx
This commit is contained in:
parent
e1249e7b81
commit
0ac9e415a6
4 changed files with 5 additions and 15 deletions
|
@ -66,19 +66,10 @@ body .root .content.theme.rtl {
|
||||||
h1 {
|
h1 {
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
}
|
}
|
||||||
nav, div {
|
|
||||||
direction: ltr;
|
|
||||||
.react-select.language-select {
|
|
||||||
.active {
|
|
||||||
font-size: larger;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
font-size: large;
|
font-size: large;
|
||||||
flex-direction: row-reverse;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@ body .root .content.theme {
|
||||||
input {
|
input {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
.surah-index-filter {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@media(max-width: $breakpoint-sm) {
|
@media(max-width: $breakpoint-sm) {
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -27,7 +27,7 @@ export function Filter({ locale, t, setIndex, surahs }: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<input
|
<input
|
||||||
className="p-3 h-4 surah-index-filter"
|
className="p-3 h-2 text-base color-primary surah-index-filter"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder={t(locale, "filter")}
|
placeholder={t(locale, "filter")}
|
||||||
onChange={onInput}
|
onChange={onInput}
|
||||||
|
|
|
@ -69,7 +69,7 @@ export function SurahIndex({ appVersion, locale, surahs, t }: Props) {
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
<footer className="flex flex-row justify-between h-16">
|
<footer className="flex flex-row justify-between mb-5 h-12">
|
||||||
<a
|
<a
|
||||||
className="flex flex-row items-center no-underline"
|
className="flex flex-row items-center no-underline"
|
||||||
href={`/${locale.name}/random/`}
|
href={`/${locale.name}/random/`}
|
||||||
|
@ -77,7 +77,6 @@ export function SurahIndex({ appVersion, locale, surahs, t }: Props) {
|
||||||
{locale.direction === "ltr" && <RightArrow />}
|
{locale.direction === "ltr" && <RightArrow />}
|
||||||
<span
|
<span
|
||||||
className={classNames({
|
className={classNames({
|
||||||
"text-base": locale.direction === "rtl",
|
|
||||||
"pl-3": locale.direction === "ltr",
|
"pl-3": locale.direction === "ltr",
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
@ -86,9 +85,6 @@ export function SurahIndex({ appVersion, locale, surahs, t }: Props) {
|
||||||
</a>
|
</a>
|
||||||
<Filter t={t} locale={locale} surahs={surahs} setIndex={setIndex} />
|
<Filter t={t} locale={locale} surahs={surahs} setIndex={setIndex} />
|
||||||
</footer>
|
</footer>
|
||||||
<span className="appver flex justify-end mb-3 w-full font-mono text-xs font-bold">
|
|
||||||
v{appVersion}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue