Dialogs list component update
This commit is contained in:
parent
350a340969
commit
f180785b46
|
@ -17,20 +17,22 @@
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body {
|
.row {
|
||||||
flex-basis: 0;
|
flex-basis: 0;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
.name {
|
.name,
|
||||||
color: #141414;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.message {
|
.message {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.name {
|
||||||
|
color: #141414;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.message {
|
||||||
color: #9fa1a7;
|
color: #9fa1a7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ const DialogCard = (props: Props) => {
|
||||||
<div class={styles.avatar}>
|
<div class={styles.avatar}>
|
||||||
<DialogAvatar name={props.name} url={props.userpic} online={props.online} />
|
<DialogAvatar name={props.name} url={props.userpic} online={props.online} />
|
||||||
</div>
|
</div>
|
||||||
<div class={styles.body}>
|
<div class={styles.row}>
|
||||||
<div class={styles.name}>{props.name}</div>
|
<div class={styles.name}>{props.name}</div>
|
||||||
<div class={styles.message}>
|
<div class={styles.message}>
|
||||||
Указать предпочтительные языки для результатов поиска можно в разделе
|
Указать предпочтительные языки для результатов поиска можно в разделе
|
||||||
|
|
|
@ -64,7 +64,7 @@ export const InboxView = () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
const getQuery = (query) => {
|
const getQuery = (query) => {
|
||||||
if (query().length > 2) {
|
if (query().length >= 2) {
|
||||||
const match = userSearch(authors(), query())
|
const match = userSearch(authors(), query())
|
||||||
setAuthors(match)
|
setAuthors(match)
|
||||||
} else {
|
} else {
|
||||||
|
@ -131,7 +131,6 @@ export const InboxView = () => {
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dialogs">
|
<div class="dialogs">
|
||||||
<For each={authors()}>
|
<For each={authors()}>
|
||||||
{(author) => <DialogCard name={author.name} slug={author.slug} online={true} />}
|
{(author) => <DialogCard name={author.name} slug={author.slug} online={true} />}
|
||||||
|
|
|
@ -34,7 +34,7 @@ main {
|
||||||
.chat-list {
|
.chat-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0 10px;
|
padding: 10px;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
||||||
.dialogs {
|
.dialogs {
|
||||||
|
@ -44,22 +44,6 @@ main {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::before,
|
|
||||||
&::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
height: 10px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
&::before {
|
|
||||||
top: 0;
|
|
||||||
background: linear-gradient(to bottom, #fff, transparent 70%);
|
|
||||||
}
|
|
||||||
&::after {
|
|
||||||
bottom: 0;
|
|
||||||
background: linear-gradient(to top, #fff, transparent 70%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user