mirror of
https://github.com/balzack/databag.git
synced 2025-05-04 23:45:21 +00:00
fixing overflow on conversation header
This commit is contained in:
parent
dfd8f0ca8d
commit
74087e3b7c
@ -117,15 +117,18 @@ export function Contact({ close, guid, listing }) {
|
|||||||
{ state.init && state.display !== 'xlarge' && (
|
{ state.init && state.display !== 'xlarge' && (
|
||||||
<div class="view">
|
<div class="view">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
{ state.display === 'small' && (
|
<div class="close" />
|
||||||
<div class="close"></div>
|
|
||||||
)}
|
|
||||||
<div class="handle">{ state.handle }</div>
|
<div class="handle">{ state.handle }</div>
|
||||||
{ state.display === 'small' && (
|
{ state.display === 'small' && (
|
||||||
<div class="close" onClick={close}>
|
<div class="close" onClick={close}>
|
||||||
<CloseOutlined />
|
<CloseOutlined />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{ state.display !== 'small' && (
|
||||||
|
<div class="close" onClick={close}>
|
||||||
|
<RightOutlined />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{ Image }
|
{ Image }
|
||||||
{ Details }
|
{ Details }
|
||||||
|
@ -13,7 +13,9 @@ console.log(state);
|
|||||||
<ConversationWrapper>
|
<ConversationWrapper>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<Logo img={state.image} url={state.logo} width={32} height={32} radius={4} />
|
<div class="logo">
|
||||||
|
<Logo img={state.image} url={state.logo} width={32} height={32} radius={4} />
|
||||||
|
</div>
|
||||||
<div class="label">{ state.subject }</div>
|
<div class="label">{ state.subject }</div>
|
||||||
{ state.display !== 'xlarge' && (
|
{ state.display !== 'xlarge' && (
|
||||||
<div class="button" onClick={openDetails}>
|
<div class="button" onClick={openDetails}>
|
||||||
|
@ -26,9 +26,18 @@ export const ConversationWrapper = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-width: 0;
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user