mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
styling sidebar
This commit is contained in:
parent
3e8ecdf0d8
commit
b16e2ff784
@ -7,6 +7,7 @@ export const CreateWrapper = styled.div`
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.container {
|
||||
background-color: #ffffff;
|
||||
|
@ -7,7 +7,8 @@ export const LoginWrapper = styled.div`
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
|
||||
height: 100%;
|
||||
\
|
||||
.container {
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
|
@ -43,7 +43,7 @@ export const ProfileWrapper = styled.div`
|
||||
flex-direction: row;
|
||||
padding: 32px;
|
||||
width: 100%;
|
||||
overflow: scroll
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.profile {
|
||||
|
@ -11,19 +11,19 @@ export function Cards({ showRegistry }) {
|
||||
|
||||
return (
|
||||
<CardsWrapper>
|
||||
|
||||
<div>
|
||||
<Drawer
|
||||
placement="right"
|
||||
closable={false}
|
||||
visible={showRegistry}
|
||||
getContainer={false}
|
||||
contentWrapperStyle={{ width: '100%' }}
|
||||
bodyStyle={{ padding: 0, backgroundColor: '#f6f5ed' }}
|
||||
bodyStyle={{ backgroundColor: '#f6f5ed', padding: 16 }}
|
||||
style={{ position: 'absolute' }}
|
||||
>
|
||||
<Registry />
|
||||
</Drawer>
|
||||
|
||||
</div>
|
||||
</CardsWrapper>
|
||||
)
|
||||
}
|
||||
|
@ -3,10 +3,11 @@ import styled from 'styled-components';
|
||||
|
||||
export const CardsWrapper = styled.div`
|
||||
position: relative;
|
||||
height: calc(100vh - 143px);
|
||||
height: calc(100vh - 127px);
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;;
|
||||
text-align: center;
|
||||
border-radius: 2px;
|
||||
padding-top: 16px;
|
||||
`;
|
||||
|
||||
|
@ -5,8 +5,10 @@ export const RegistryWrapper = styled.div`
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
text-align: center;
|
||||
height: calc(100vh - 143px);
|
||||
display: flex;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
flex-direction: column;
|
||||
|
||||
.contacts {
|
||||
|
@ -2,7 +2,7 @@ import styled from 'styled-components';
|
||||
|
||||
export const ChannelsWrapper = styled.div`
|
||||
position: relative;
|
||||
height: calc(100vh - 143px);
|
||||
height: calc(100vh - 127px);
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
|
@ -50,7 +50,7 @@ export function Contacts() {
|
||||
|
||||
return (
|
||||
<ContactsWrapper>
|
||||
<Tabs onChange={onTab} tabBarStyle={{ paddingLeft: 16, paddingRight: 16 }} tabBarExtraContent={addButton}>>
|
||||
<Tabs onChange={onTab} tabBarStyle={{ marginBottom: 0, paddingLeft: 16, paddingRight: 16 }} tabBarExtraContent={addButton}>>
|
||||
<TabPane tab="Contacts" key="contact">
|
||||
<Cards showRegistry={showRegistry} />
|
||||
</TabPane>
|
||||
|
Loading…
Reference in New Issue
Block a user