fix message scrolling and no-read-access display
This commit is contained in:
+12
-2
@@ -922,11 +922,20 @@ table.permission-editor td.checkbox {
|
|||||||
background-image: url("../img/ignasi_pattern_s.png");
|
background-image: url("../img/ignasi_pattern_s.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#messages-container {
|
||||||
|
position: relative;
|
||||||
|
overflow-y: hidden;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#write-only-background {
|
#write-only-background {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-image: repeating-linear-gradient(45deg,
|
background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.5), rgba(255,255,255,.5) 0.5rem,
|
||||||
transparent, transparent 0.5rem, rgba(255,255,255,.5) 0.5rem, rgba(255,255,255,.5) 1rem);
|
rgba(255,255,255,.8) 0.5rem, rgba(255,255,255,.8) 1rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
#write-only-note {
|
#write-only-note {
|
||||||
@@ -941,6 +950,7 @@ table.permission-editor td.checkbox {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
padding: 0.25rem 1.5rem;
|
padding: 0.25rem 1.5rem;
|
||||||
|
box-shadow: 0.1rem 0.1rem 0.1rem rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
/* Footer-panel with the input for the new message */
|
/* Footer-panel with the input for the new message */
|
||||||
#send-message-panel {
|
#send-message-panel {
|
||||||
|
|||||||
+10
-7
@@ -3528,16 +3528,19 @@
|
|||||||
onClearError={this.props.onError} />
|
onClearError={this.props.onError} />
|
||||||
: null}
|
: null}
|
||||||
<LoadSpinner show={this.state.fetchingMessages} />
|
<LoadSpinner show={this.state.fetchingMessages} />
|
||||||
<div id="messages-panel" ref={this.handleScrollReference}>
|
<div id="messages-container">
|
||||||
{this.state.writeOnly ?
|
<div id="messages-panel" ref={this.handleScrollReference}>
|
||||||
<div id="write-only-background">
|
|
||||||
<div id="write-only-note">no access to messages</div>
|
|
||||||
</div>
|
|
||||||
:
|
|
||||||
<ul id="scroller" className={chatBoxClass}>
|
<ul id="scroller" className={chatBoxClass}>
|
||||||
{messageNodes}
|
{messageNodes}
|
||||||
</ul>
|
</ul>
|
||||||
}
|
</div>
|
||||||
|
{this.state.writeOnly ?
|
||||||
|
<div id="write-only-background">
|
||||||
|
<div id="write-only-note">no access to messages</div>
|
||||||
|
</div>
|
||||||
|
:
|
||||||
|
null
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<MessagesView.Send
|
<MessagesView.Send
|
||||||
topic={this.props.topic}
|
topic={this.props.topic}
|
||||||
|
|||||||
Reference in New Issue
Block a user