Fixed all authors page style
This commit is contained in:
parent
712da692a3
commit
c086a242b7
|
@ -246,6 +246,8 @@
|
|||
}
|
||||
|
||||
.authorsListItem {
|
||||
margin-bottom: 1em !important;
|
||||
|
||||
.authorName {
|
||||
@include font-size(2.2rem);
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import { locale } from '../../stores/ui'
|
|||
import { follow, unfollow } from '../../stores/zine/common'
|
||||
import { clsx } from 'clsx'
|
||||
import { useSession } from '../../context/session'
|
||||
import { StatMetrics } from '../_shared/StatMetrics'
|
||||
|
||||
interface AuthorCardProps {
|
||||
caption?: string
|
||||
|
@ -68,7 +69,7 @@ export const AuthorCard = (props: AuthorCardProps) => {
|
|||
<div class={styles.authorName}>{name()}</div>
|
||||
</Show>
|
||||
|
||||
<Show when={!props.hideDescription}>
|
||||
<Show when={!props.hideDescription && props.author.bio}>
|
||||
{props.isAuthorsList}
|
||||
<div
|
||||
class={styles.authorAbout}
|
||||
|
@ -76,6 +77,10 @@ export const AuthorCard = (props: AuthorCardProps) => {
|
|||
innerHTML={props.author.bio}
|
||||
></div>
|
||||
</Show>
|
||||
|
||||
<Show when={props.author.stat}>
|
||||
<StatMetrics fields={['shouts', 'followers', 'comments']} stat={props.author.stat} />
|
||||
</Show>
|
||||
</div>
|
||||
|
||||
<Show when={canFollow()}>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
.icon {
|
||||
height: 1.2em;
|
||||
width: 1.2em;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -181,17 +181,18 @@ export const AllAuthorsView = (props: AllAuthorsViewProps) => {
|
|||
<Show when={searchParams().by && searchParams().by !== 'title'}>
|
||||
<For each={filterResults().slice(0, limit())}>
|
||||
{(author) => (
|
||||
<>
|
||||
<AuthorCard
|
||||
author={author}
|
||||
hasLink={true}
|
||||
subscribed={subscribed(author.slug)}
|
||||
noSocialButtons={true}
|
||||
isAuthorsList={true}
|
||||
truncateBio={true}
|
||||
/>
|
||||
<StatMetrics fields={['shouts', 'followers', 'comments']} stat={author.stat} />
|
||||
</>
|
||||
<div class="row">
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<AuthorCard
|
||||
author={author}
|
||||
hasLink={true}
|
||||
subscribed={subscribed(author.slug)}
|
||||
noSocialButtons={true}
|
||||
isAuthorsList={true}
|
||||
truncateBio={true}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</For>
|
||||
</Show>
|
||||
|
|
|
@ -5,9 +5,16 @@
|
|||
input {
|
||||
border: none;
|
||||
border-bottom: 1px solid #ccc;
|
||||
box-shadow: 0 0 0 #ccc;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
outline: none;
|
||||
transition: box-shadow 0.3s;
|
||||
width: 100%;
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 3px 0 #ccc;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
|
|
|
@ -14,13 +14,7 @@ export const SearchField = (props: SearchFieldProps) => {
|
|||
<label for="search-field">
|
||||
<Icon name="search" class={styles.icon} />
|
||||
</label>
|
||||
<input
|
||||
id="search-field"
|
||||
type="text"
|
||||
class="search-input"
|
||||
onInput={handleInputChange}
|
||||
placeholder={t('Search')}
|
||||
/>
|
||||
<input id="search-field" type="text" onInput={handleInputChange} placeholder={t('Search')} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
color: #9fa1a7;
|
||||
display: flex;
|
||||
margin-bottom: 1em;
|
||||
margin: 0.5em 0 1em;
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
flex-wrap: wrap;
|
||||
|
|
|
@ -72,3 +72,7 @@
|
|||
margin-left: 0.5em;
|
||||
vertical-align: super;
|
||||
}
|
||||
|
||||
.viewSwitcher {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user