discourse/plugins/chat/assets/stylesheets/common/chat-channel-preview-card.scss
David Battersby 914543dbb9
FIX: dont allow channel non-members to write messages in threads (#31697)
Prevents channel non-members from seeing the composer in threads. Since
they do not have the correct permissions to post within the channel, we
should show the join channel CTA in place of the chat composer.
2025-03-07 15:50:30 +04:00

48 lines
939 B
SCSS
Vendored

.chat-channel-preview-card {
margin: 1rem 0 0 0;
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: var(--d-button-border-radius);
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);
}
}