mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 03:23:43 +08:00
cbbaeb55b5
After this change, in order to join a chat channel, a user needs to be in a group with at least “Reply” permission for the category. If the user only has “See” permission, they are able to preview the channel, but not join it or send messages. The auto-join function also follows this new restriction. --------- Co-authored-by: Martin Brennan <martin@discourse.org>
49 lines
926 B
SCSS
49 lines
926 B
SCSS
.chat-channel-preview-card {
|
|
margin: 1rem 1rem 2rem 1rem;
|
|
padding: 1.5rem 1rem;
|
|
background-color: var(--secondary-very-high);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
z-index: 3;
|
|
|
|
&.-no-description {
|
|
.chat-channel-title {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
}
|
|
|
|
&.-no-button {
|
|
.chat-channel-preview-card__browse-all {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
&__description {
|
|
color: var(--primary-600);
|
|
text-align: center;
|
|
overflow-wrap: break-word;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.chat-channel-title__name {
|
|
font-size: var(--font-up-2);
|
|
}
|
|
|
|
&__join-channel-btn {
|
|
font-size: var(--font-up-2);
|
|
border: 1px solid transparent;
|
|
border-radius: 0.25rem;
|
|
line-height: normal;
|
|
box-sizing: border-box;
|
|
padding: 0.5em 0.65em;
|
|
font-weight: normal;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__browse-all {
|
|
margin-top: 1rem;
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|