Some last CSS fixes
parent
9f74906592
commit
2fba13770b
|
|
@ -13,14 +13,21 @@ class SharedFilesList extends Component
|
||||||
{
|
{
|
||||||
render()
|
render()
|
||||||
{
|
{
|
||||||
|
const { sharing } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='shared-files'>
|
<div className='shared-files'>
|
||||||
{this.props.sharing.map((entry, i) => (
|
{ sharing.length > 0 ?
|
||||||
|
sharing.map((entry, i) => (
|
||||||
<FileEntry
|
<FileEntry
|
||||||
data={entry}
|
data={entry}
|
||||||
key={i}
|
key={i}
|
||||||
/>
|
/>
|
||||||
))}
|
))
|
||||||
|
:<div className='empty'>
|
||||||
|
<p>No one has shared files yet...</p>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
> .shared-files {
|
> .shared-files {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
overflow-y: scroll;
|
overflow-y: auto;
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
|
|
||||||
> .file-entry {
|
> .file-entry {
|
||||||
|
|
@ -75,6 +75,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .empty {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 20vmin;
|
||||||
|
|
||||||
|
> p {
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
user-select: none;
|
||||||
|
pointer-events: none;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
[data-component='ParticipantList'] {
|
[data-component='ParticipantList'] {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 6px;
|
||||||
|
|
||||||
> .list {
|
> .list {
|
||||||
box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), \
|
box-shadow: 0 2px 5px 2px rgba(0,0,0,0.2);
|
||||||
0 4px 20px 0 rgba(0,0,0,0.19);
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
> .list-header {
|
> .list-header {
|
||||||
|
|
@ -22,7 +23,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.selected {
|
&.selected {
|
||||||
border-bottom-color: #377EFF;
|
background-color: #377eff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -202,5 +202,6 @@
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue