discourse/plugins/chat/assets/stylesheets/desktop/base-desktop.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
1.7 KiB
SCSS
Raw Normal View History

.fk-d-menu[data-identifier="usercard"] {
z-index: z("usercard");
}
.full-page-chat {
&.full-page-chat-sidebar-enabled {
grid-template-columns: 1fr;
overflow: inherit;
UX: improves composer and thread panel (#21210) This pull request is a full overhaul of the chat-composer and contains various improvements to the thread panel. They have been grouped in the same PR as lots of improvements/fixes to the thread panel needed an improved composer. This is meant as a first step. ### New features included in this PR - A resizable side panel - A clear dropzone area for uploads - A simplified design for image uploads, this is only a first step towards more redesign of this area in the future ### Notable fixes in this PR - Correct placeholder in thread panel - Allows to edit the last message of a thread with arrow up - Correctly focus composer when replying to a message - The reply indicator is added instantly in the channel when starting a thread - Prevents a large variety of bug where the composer could bug and prevent sending message or would clear your input while it has content ### Technical notes To achieve this PR, three important changes have been made: - `<ChatComposer>` has been fully rewritten and is now a glimmer component - The chat composer now takes a `ChatMessage` as input which can directly be used in other operations, it simplifies a lot of logic as we are always working a with a `ChatMessage` - `TextareaInteractor` has been created to wrap the existing `TextareaTextManipulation` mixin, it will make future migrations easier and allow us to have a less polluted `<ChatComposer>` Note ".chat-live-pane" has been renamed ".chat-channel" Design for upload dropzone is from @chapoi
2023-04-25 16:23:03 +08:00
.chat-channel {
border-radius: var(--full-page-border-radius);
}
}
UX: improves composer and thread panel (#21210) This pull request is a full overhaul of the chat-composer and contains various improvements to the thread panel. They have been grouped in the same PR as lots of improvements/fixes to the thread panel needed an improved composer. This is meant as a first step. ### New features included in this PR - A resizable side panel - A clear dropzone area for uploads - A simplified design for image uploads, this is only a first step towards more redesign of this area in the future ### Notable fixes in this PR - Correct placeholder in thread panel - Allows to edit the last message of a thread with arrow up - Correctly focus composer when replying to a message - The reply indicator is added instantly in the channel when starting a thread - Prevents a large variety of bug where the composer could bug and prevent sending message or would clear your input while it has content ### Technical notes To achieve this PR, three important changes have been made: - `<ChatComposer>` has been fully rewritten and is now a glimmer component - The chat composer now takes a `ChatMessage` as input which can directly be used in other operations, it simplifies a lot of logic as we are always working a with a `ChatMessage` - `TextareaInteractor` has been created to wrap the existing `TextareaTextManipulation` mixin, it will make future migrations easier and allow us to have a less polluted `<ChatComposer>` Note ".chat-live-pane" has been renamed ".chat-channel" Design for upload dropzone is from @chapoi
2023-04-25 16:23:03 +08:00
.chat-channel {
.chat-messages-container {
&.has-reply {
grid-template-columns: var(--message-left-width) 1fr;
}
.chat-user {
width: var(--message-left-width);
}
}
}
}
.chat-message-text {
img:not(.emoji):not(.avatar, .onebox-avatar-inline) {
transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
&:hover {
cursor: pointer;
border-radius: var(--d-border-radius);
box-shadow: 0 2px 5px 0 rgba(var(--always-black-rgb), 0.1),
0 2px 10px 0 rgba(var(--always-black-rgb), 0.1);
}
}
}
.chat-message-container:not(.-user-info-hidden) {
.chat-message {
padding: 0.65rem 1rem 0.15rem;
}
}
.chat-message-container.-user-info-hidden {
.chat-message {
padding: 0.15rem 1rem;
}
.chat-time {
color: var(--secondary-medium);
flex-shrink: 0;
font-size: var(--font-down-2);
margin-top: 0.4em;
display: none;
width: var(--message-left-width);
}
&:hover {
.chat-message-left-gutter__bookmark {
display: none;
}
.chat-time {
display: block;
}
}
}
// Full Page Styling in Core
.has-full-page-chat {
#main-outlet {
padding: 0;
}
.full-page-chat {
border-left: 1px solid var(--primary-low);
border-right: 1px solid var(--primary-low);
}
&.has-sidebar-page .full-page-chat {
border-left: 0;
}
}
.chat-form {
&__description.-autojoin,
&__description.-channel-wide-mentions {
max-width: 50%;
}
}