rendering channel filter

This commit is contained in:
Roland Osborne 2022-08-07 23:30:34 -07:00
parent 814b342eab
commit 213577e418
6 changed files with 44 additions and 3 deletions

View File

@ -38,6 +38,7 @@ export const CreateAccountWrapper = styled.div`
.form-form { .form-form {
flex: 2; flex: 2;
flex-grow: 1;
.form-space { .form-space {
height: 8px; height: 8px;

View File

@ -4,7 +4,7 @@ const Colors = {
formBackground: '#f4f4f4', formBackground: '#f4f4f4',
formHover: '#e8e8e8', formHover: '#e8e8e8',
grey: '#888888', grey: '#888888',
white: '#f8f8f8', white: '#ffffff',
divider: '#dddddd', divider: '#dddddd',
encircle: '#cccccc', encircle: '#cccccc',
alert: '#ff8888', alert: '#ff8888',

View File

@ -109,7 +109,9 @@ export function Session() {
{ (viewport.state.display === 'small') && ( { (viewport.state.display === 'small') && (
<div class="mobile-layout"> <div class="mobile-layout">
<div class="top"> <div class="top">
<Channels /> <div class="reframe">
<Channels />
</div>
{ state.conversation && ( { state.conversation && (
<div class="reframe"> <div class="reframe">
<Conversation cardId={state.cardId} conversationId={state.conversationId} /> <Conversation cardId={state.cardId} conversationId={state.conversationId} />

View File

@ -24,9 +24,11 @@ export const SessionWrapper = styled.div`
background-color: yellow; background-color: yellow;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative;
} }
.center { .center {
flex-grow: 1; flex-grow: 1;
position: relative;
} }
.right { .right {
min-width: 256px; min-width: 256px;
@ -36,6 +38,7 @@ export const SessionWrapper = styled.div`
background-color: yellow; background-color: yellow;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative;
} }
} }
@ -53,9 +56,11 @@ export const SessionWrapper = styled.div`
background-color: yellow; background-color: yellow;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative;
} }
.center { .center {
flex-grow: 1; flex-grow: 1;
position: relative;
} }
} }
@ -71,6 +76,7 @@ export const SessionWrapper = styled.div`
} }
.bottom { .bottom {
height: 48px; height: 48px;
position: relative;
} }
} }
`; `;

View File

@ -1,4 +1,16 @@
import { Input } from 'antd';
import { ChannelsWrapper } from './Channels.styled';
import { SearchOutlined } from '@ant-design/icons';
export function Channels() { export function Channels() {
return <></> return (
<ChannelsWrapper>
<div class="search">
<div class="filter">
<Input bordered={false} allowClear={true} placeholder="Channels" prefix={<SearchOutlined />} />
</div>
</div>
</ChannelsWrapper>
);
} }

View File

@ -0,0 +1,20 @@
import styled from 'styled-components';
import Colors from 'constants/Colors';
export const ChannelsWrapper = styled.div`
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
background-color: ${Colors.formBackground};
.search {
padding: 8px;
.filter {
border: 1px solid ${Colors.divider};
background-color: ${Colors.white};
border-radius: 8px;
}
}
`;