2022-11-02 09:41:30 -04:00
|
|
|
$float-height: 530px;
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--message-left-width: 42px;
|
|
|
|
--full-page-border-radius: 12px;
|
|
|
|
--full-page-sidebar-width: 275px;
|
2022-11-28 12:38:05 -05:00
|
|
|
--channel-list-avatar-size: 30px;
|
DEV: Refactoring chat message actions for ChatMessage component usage in thread panel (#20756)
This commit is a major overhaul of how chat message actions work, to make it so they are reusable between the main chat channel and the chat thread panel, as well as many improvements and fixes for the thread panel.
There are now several new classes and concepts:
* ChatMessageInteractor - This is initialized from the ChatMessage, ChatMessageActionsDesktop, and ChatMessageActionsMobile components. This handles permissions about what actions can be done for each
message based on the context (thread or channel), handles the actions themselves (e.g. copyLink, delete, edit),
and interacts with the pane of the current context to modify the UI
* ChatChannelThreadPane and ChatChannelPane services - This represents the UI context which contains the
messages, and are mostly used for state management for things like message selection.
* ChatChannelThreadComposer and ChatChannelComposer - This handles interaction between the pane, the
message actions, and the composer, dealing with reply and edit message state.
* Scrolling logic for the messages has now been moved to a helper so it can be shared between the main channel pane and the thread pane
* Various improvements with the emoji picker on both mobile and desktop. The DOM node of each component is now located outside of the message which prevents a large range of issues.
The thread panel now also works in the chat drawer, and the thread messages have less
actions than the main panel, since some do not make sense there (e.g. moving messages to
a different channel). The thread panel title, excerpt, and message sender have also been removed
for now to save space.
This gives us a solid base to keep expanding on and fixing up threads. Subsequent PRs will
make the thread MessageBus subscriptions work and disable echo mode
for the initial release of threads.
Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2023-04-06 09:19:52 -04:00
|
|
|
--chat-header-offset: 50px;
|
2022-11-02 09:41:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.chat-message-move-to-channel-modal-modal {
|
|
|
|
.modal-inner-container {
|
|
|
|
.chat-move-message-channel-chooser {
|
|
|
|
width: 100%;
|
|
|
|
.category-chat-badge {
|
|
|
|
.d-icon {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.uppy-is-drag-over .chat-composer .drop-a-file {
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
background-color: rgba(0, 0, 0, 0.75);
|
|
|
|
z-index: z("header");
|
|
|
|
&-content {
|
|
|
|
width: max-content;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
padding: 2em;
|
|
|
|
background-color: #1d1d1d;
|
|
|
|
border-radius: 0.25em;
|
|
|
|
&-images {
|
|
|
|
.d-icon {
|
|
|
|
height: 3em;
|
|
|
|
width: 3em;
|
|
|
|
color: var(--secondary-or-primary);
|
|
|
|
&:first-of-type {
|
|
|
|
transform: rotate(-5deg);
|
|
|
|
}
|
|
|
|
&:nth-of-type(2) {
|
|
|
|
height: 4em;
|
|
|
|
width: 4em;
|
|
|
|
}
|
|
|
|
&:last-of-type {
|
|
|
|
transform: rotate(5deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-text {
|
|
|
|
margin: 1.5em 0 0 0;
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
color: var(--secondary-or-primary);
|
|
|
|
.d-icon-upload {
|
|
|
|
padding-right: 0.25em;
|
|
|
|
position: relative;
|
|
|
|
bottom: 2px;
|
|
|
|
color: var(--secondary-or-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-unread-indicator {
|
|
|
|
@include unselectable;
|
|
|
|
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
border-radius: 100%;
|
|
|
|
box-sizing: content-box;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
background: var(--tertiary-med-or-tertiary);
|
2022-11-28 12:38:05 -05:00
|
|
|
color: var(--secondary);
|
2022-11-02 09:41:30 -04:00
|
|
|
font-size: var(--font-down-2);
|
2022-11-28 12:38:05 -05:00
|
|
|
text-align: center;
|
2022-11-02 09:41:30 -04:00
|
|
|
|
|
|
|
&.urgent {
|
|
|
|
background: var(--success);
|
|
|
|
color: var(--secondary);
|
|
|
|
|
|
|
|
.number-wrap {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
.number {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
DEV: start glimmer-ification and optimisations of chat plugin (#19531)
Note this is a very large PR, and some of it could have been splited, but keeping it one chunk made it to merge conflicts and to revert if necessary. Actual new code logic is also not that much, as most of the changes are removing js tests, adding system specs or moving things around.
To make it possible this commit is doing the following changes:
- converting (and adding new) existing js acceptances tests into system tests. This change was necessary to ensure as little regressions as possible while changing paradigm
- moving away from store. Using glimmer and tracked properties requires to have class objects everywhere and as a result works well with models. However store/adapters are suffering from many bugs and limitations. As a workaround the `chat-api` and `chat-channels-manager` are an answer to this problem by encapsulating backend calls and frontend storage logic; while still using js models.
- dropping `appEvents` as much as possible. Using tracked properties and a better local storage of channel models, allows to be much more reactive and doesn’t require arbitrary manual updates everywhere in the app.
- while working on replacing store, the existing work of a chat api (backend) has been continued to support more cases.
- removing code from the `chat` service to separate concerns, `chat-subscriptions-manager` and `chat-channels-manager`, being the largest examples of where the code has been rewritten/moved.
Future wok:
- improve behavior when closing/deleting a channel, it's already slightly buggy on live, it's rare enough that it's not a big issue, but should be improved
- improve page objects used in chat
- move more endpoints to the API
- finish temporarily skipped tests
- extract more code from the `chat` service
- use glimmer for `chat-messages`
- separate concerns in `chat-live-pane`
- eventually add js tests for `chat-api`, `chat-channels-manager` and `chat-subscriptions-manager`, they are indirectly heavy tested through system tests but it would be nice to at least test the public API
<!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
2022-12-21 07:21:02 -05:00
|
|
|
.header-dropdown-toggle.chat-header-icon {
|
2022-11-02 09:41:30 -04:00
|
|
|
.icon {
|
DEV: start glimmer-ification and optimisations of chat plugin (#19531)
Note this is a very large PR, and some of it could have been splited, but keeping it one chunk made it to merge conflicts and to revert if necessary. Actual new code logic is also not that much, as most of the changes are removing js tests, adding system specs or moving things around.
To make it possible this commit is doing the following changes:
- converting (and adding new) existing js acceptances tests into system tests. This change was necessary to ensure as little regressions as possible while changing paradigm
- moving away from store. Using glimmer and tracked properties requires to have class objects everywhere and as a result works well with models. However store/adapters are suffering from many bugs and limitations. As a workaround the `chat-api` and `chat-channels-manager` are an answer to this problem by encapsulating backend calls and frontend storage logic; while still using js models.
- dropping `appEvents` as much as possible. Using tracked properties and a better local storage of channel models, allows to be much more reactive and doesn’t require arbitrary manual updates everywhere in the app.
- while working on replacing store, the existing work of a chat api (backend) has been continued to support more cases.
- removing code from the `chat` service to separate concerns, `chat-subscriptions-manager` and `chat-channels-manager`, being the largest examples of where the code has been rewritten/moved.
Future wok:
- improve behavior when closing/deleting a channel, it's already slightly buggy on live, it's rare enough that it's not a big issue, but should be improved
- improve page objects used in chat
- move more endpoints to the API
- finish temporarily skipped tests
- extract more code from the `chat` service
- use glimmer for `chat-messages`
- separate concerns in `chat-live-pane`
- eventually add js tests for `chat-api`, `chat-channels-manager` and `chat-subscriptions-manager`, they are indirectly heavy tested through system tests but it would be nice to at least test the public API
<!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
2022-12-21 07:21:02 -05:00
|
|
|
.chat-channel-unread-indicator {
|
|
|
|
border: 2px solid var(--header_background);
|
|
|
|
position: absolute;
|
|
|
|
right: 2px;
|
|
|
|
bottom: 2px;
|
|
|
|
transition: border-color linear 0.15s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span.icon {
|
|
|
|
cursor: auto;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.d-icon {
|
|
|
|
color: var(--header_primary-low-mid);
|
|
|
|
}
|
|
|
|
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a.icon {
|
2022-11-02 09:41:30 -04:00
|
|
|
&.active {
|
|
|
|
.d-icon-comment {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.chat-channel-unread-indicator {
|
|
|
|
border-color: var(--primary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-messages-container {
|
|
|
|
word-wrap: break-word;
|
|
|
|
white-space: normal;
|
2023-03-03 07:09:25 -05:00
|
|
|
position: relative;
|
2022-11-02 09:41:30 -04:00
|
|
|
|
|
|
|
.chat-message-container {
|
|
|
|
display: grid;
|
|
|
|
|
|
|
|
&.selecting-messages {
|
|
|
|
grid-template-columns: 1.5em 1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-message-selector {
|
|
|
|
align-self: center;
|
|
|
|
justify-self: end;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-time {
|
|
|
|
color: var(--primary-high);
|
|
|
|
font-size: var(--font-down-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-picker {
|
|
|
|
position: fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.chat-.chat-message-react-btn {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-emoji-avatar {
|
|
|
|
width: var(--message-left-width);
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-19 06:31:45 -05:00
|
|
|
.avatar {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
padding: 0;
|
2022-12-19 07:43:18 -05:00
|
|
|
box-sizing: border-box;
|
2022-12-19 06:31:45 -05:00
|
|
|
|
|
|
|
.is-online & {
|
|
|
|
border: 1px solid var(--secondary);
|
|
|
|
box-shadow: 0px 0px 0px 1px var(--success);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-02 09:41:30 -04:00
|
|
|
.chat-user-avatar {
|
|
|
|
@include unselectable;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.chat-message:not(.is-reply) & {
|
|
|
|
width: var(--message-left-width);
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-online {
|
|
|
|
.chat-user-avatar-container .avatar {
|
|
|
|
box-shadow: 0px 0px 0px 1px var(--success);
|
|
|
|
border: 1px solid var(--secondary);
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-user-avatar-container {
|
|
|
|
position: relative;
|
2022-12-01 08:56:04 -05:00
|
|
|
padding: 1px; //for is-online boxshadow effect, preventing cutoff
|
2022-11-02 09:41:30 -04:00
|
|
|
|
|
|
|
.avatar {
|
2022-12-01 08:56:04 -05:00
|
|
|
padding: 1px; ////for is-online boxshadow effect, preventing shift
|
2022-11-02 09:41:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.chat-user-presence-flair {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
background-color: var(--success);
|
|
|
|
border: 1px solid var(--secondary);
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
.chat-message & {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
right: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-title & {
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
right: -1px;
|
|
|
|
bottom: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-title & {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-25 04:23:03 -04:00
|
|
|
.chat-channel {
|
2022-11-02 09:41:30 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
|
|
min-height: 1px;
|
2022-11-07 13:10:09 -05:00
|
|
|
position: relative;
|
2023-04-04 06:44:36 -04:00
|
|
|
overflow: hidden;
|
2022-11-02 09:41:30 -04:00
|
|
|
|
2022-11-11 00:39:15 -05:00
|
|
|
.open-drawer-btn {
|
|
|
|
color: var(--primary-low-mid);
|
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: var(--primary-low-mid);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-02 09:41:30 -04:00
|
|
|
.chat-messages-scroll {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow-y: scroll;
|
2023-02-17 07:39:51 -05:00
|
|
|
overscroll-behavior: contain;
|
2022-11-02 09:41:30 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
z-index: 1;
|
2023-04-03 04:46:38 -04:00
|
|
|
margin: 0 1px 0 0;
|
2023-03-03 07:09:25 -05:00
|
|
|
will-change: transform;
|
2023-04-03 04:46:38 -04:00
|
|
|
@include chat-scrollbar();
|
2022-11-02 09:41:30 -04:00
|
|
|
|
|
|
|
.join-channel-btn.in-float {
|
|
|
|
position: absolute;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
left: 50%;
|
|
|
|
top: 10px;
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
.all-loaded-message {
|
|
|
|
text-align: center;
|
|
|
|
color: var(--primary-medium);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
padding: 0.5em 0.25em 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-stick-wrap {
|
2023-03-09 07:44:02 -05:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 0 1rem;
|
2022-11-02 09:41:30 -04:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-scroll-to-bottom {
|
2023-03-03 07:09:25 -05:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2022-11-02 09:41:30 -04:00
|
|
|
position: absolute;
|
2023-03-03 07:09:25 -05:00
|
|
|
z-index: 1;
|
|
|
|
flex-direction: column;
|
2023-03-06 10:42:11 -05:00
|
|
|
bottom: -25px;
|
2023-03-03 07:09:25 -05:00
|
|
|
background: none;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.25s ease, transform 0.5s ease;
|
|
|
|
transform: scale(0.1);
|
|
|
|
padding: 0;
|
2022-11-02 09:41:30 -04:00
|
|
|
|
2023-03-03 07:09:25 -05:00
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
2023-03-02 13:46:03 -05:00
|
|
|
}
|
2022-11-02 09:41:30 -04:00
|
|
|
|
2023-03-03 07:09:25 -05:00
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
background: none !important;
|
2023-03-02 13:46:03 -05:00
|
|
|
}
|
|
|
|
|
2023-03-03 07:09:25 -05:00
|
|
|
&.visible {
|
2023-03-06 10:42:11 -05:00
|
|
|
transform: translateY(-32px) scale(1);
|
2023-03-03 07:09:25 -05:00
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2023-03-02 10:34:25 -05:00
|
|
|
|
2023-03-03 07:09:25 -05:00
|
|
|
&__arrow {
|
|
|
|
display: flex;
|
|
|
|
background: var(--primary-medium);
|
|
|
|
border-radius: 100%;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
position: relative;
|
2023-03-02 13:46:03 -05:00
|
|
|
|
2023-03-02 14:20:39 -05:00
|
|
|
.d-icon {
|
2023-03-03 07:09:25 -05:00
|
|
|
color: var(--secondary);
|
2023-03-18 13:03:54 -04:00
|
|
|
margin-left: 1px; // "fixes" the 1px svg shift
|
2023-03-03 07:09:25 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
.chat-scroll-to-bottom__arrow {
|
|
|
|
.d-icon {
|
|
|
|
color: var(--secondary);
|
|
|
|
}
|
2022-11-02 09:41:30 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-title-chat-icon {
|
|
|
|
display: inline-block;
|
|
|
|
* {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body.has-sidebar-page.has-full-page-chat #main-outlet-wrapper {
|
|
|
|
gap: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.has-full-page-chat {
|
|
|
|
.alert-error,
|
|
|
|
.alert-info,
|
|
|
|
.alert-success,
|
|
|
|
.alert-warning {
|
|
|
|
margin: 0;
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.full-page-chat {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: var(--full-page-sidebar-width) 1fr;
|
|
|
|
|
|
|
|
.chat-full-page-header {
|
|
|
|
border-top: 1px solid var(--primary-low);
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
background: var(--secondary);
|
|
|
|
z-index: 3;
|
2022-11-11 00:39:15 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__back-btn {
|
|
|
|
width: 40px;
|
|
|
|
min-width: 40px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2022-11-02 09:41:30 -04:00
|
|
|
|
|
|
|
.chat-channel-title {
|
|
|
|
.category-chat-name,
|
|
|
|
.chat-name,
|
|
|
|
.dm-usernames {
|
|
|
|
color: var(--primary);
|
|
|
|
display: inline;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.-not-following {
|
|
|
|
.chat-channel-title {
|
|
|
|
max-width: calc(100% - 50px);
|
|
|
|
}
|
|
|
|
.join-channel-btn {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-messages-scroll,
|
2023-04-25 04:23:03 -04:00
|
|
|
.chat-channel {
|
2022-11-02 09:41:30 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-full-page-header__left-actions {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-full-page-header__title {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-full-page-header__right-actions {
|
|
|
|
align-items: stretch;
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-full-page-header {
|
2022-11-11 00:39:15 -05:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
2022-11-02 09:41:30 -04:00
|
|
|
.chat-channel-header-details {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
2022-11-11 00:39:15 -05:00
|
|
|
flex: 1;
|
2023-04-04 06:44:36 -04:00
|
|
|
max-width: 100%;
|
2022-11-02 09:41:30 -04:00
|
|
|
|
|
|
|
.chat-channel-archive-status {
|
|
|
|
text-align: right;
|
|
|
|
padding-right: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-title {
|
|
|
|
margin: 0;
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
|
|
.d-icon:not(.d-icon-lock) {
|
|
|
|
height: 1.25em;
|
|
|
|
width: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.category-chat-name,
|
2022-11-25 08:15:38 -05:00
|
|
|
.dm-username {
|
2022-11-02 09:41:30 -04:00
|
|
|
font-weight: 700;
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
line-height: var(--font-up-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dm-usernames {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.chat-channel-retry-archive {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-archive-modal-inner {
|
|
|
|
.chat-to-topic-selector {
|
|
|
|
width: 500px;
|
|
|
|
height: 300px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.radios {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
.radio-label {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
details {
|
|
|
|
margin-bottom: 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"],
|
|
|
|
.select-kit.combo-box.category-chooser {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-archive-modal-inner {
|
|
|
|
.chat-to-topic-selector {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-preferences .chat-setting .controls {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-message-collapser,
|
|
|
|
.chat-message-text {
|
|
|
|
> p {
|
|
|
|
margin: 0.5em 0 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
> p:first-of-type {
|
|
|
|
margin-top: 0.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
> p:last-of-type {
|
|
|
|
margin-bottom: 0.1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.reviewable-chat-message {
|
|
|
|
.chat-channel-title {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-dm-title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
.channel-name {
|
|
|
|
font-weight: 700;
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
line-height: var(--font-up-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-status {
|
2022-12-29 05:45:40 -05:00
|
|
|
background: var(--secondary);
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2022-11-02 09:41:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
html.has-full-page-chat {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&.keyboard-visible body #main-outlet .full-page-chat {
|
|
|
|
padding-bottom: 0.2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
2023-05-02 17:00:16 -04:00
|
|
|
&.footer-nav-ipad {
|
|
|
|
#main-outlet-wrapper {
|
|
|
|
grid-template-rows: calc(
|
|
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
|
|
var(--footer-nav-height, 0px)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-02 09:41:30 -04:00
|
|
|
#main-outlet {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-height: calc(
|
|
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
|
|
var(--composer-height, 0px)
|
|
|
|
);
|
|
|
|
|
|
|
|
.full-page-chat {
|
|
|
|
height: 100%;
|
|
|
|
min-height: 0;
|
|
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
|
|
}
|
|
|
|
|
2023-02-13 20:38:41 -05:00
|
|
|
.main-chat-outlet {
|
2022-11-02 09:41:30 -04:00
|
|
|
min-height: 0;
|
2023-04-04 06:44:36 -04:00
|
|
|
overflow: hidden;
|
2022-11-02 09:41:30 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mobile-view {
|
|
|
|
#main-outlet-wrapper {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// these need to apply to desktop too, because iPads
|
|
|
|
&.discourse-touch {
|
|
|
|
// iPad web
|
|
|
|
#main-outlet-wrapper {
|
|
|
|
// restrict the row height, including when virtual keyboard is open
|
|
|
|
grid-template-rows: calc(
|
2023-02-16 12:25:36 -05:00
|
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px)
|
2022-11-02 09:41:30 -04:00
|
|
|
);
|
2023-04-28 04:51:23 -04:00
|
|
|
|
2022-11-02 09:41:30 -04:00
|
|
|
.sidebar-wrapper {
|
|
|
|
// prevents sidebar from overflowing behind the virtual keyboard
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.full-page-chat,
|
2023-04-25 04:23:03 -04:00
|
|
|
.chat-channel,
|
2022-11-02 09:41:30 -04:00
|
|
|
#main-outlet {
|
|
|
|
// allows containers to shrink to fit
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main-outlet {
|
|
|
|
// limits height for iPad
|
|
|
|
max-height: calc(
|
|
|
|
100vh - calc(var(--header-offset) + var(--composer-ipad-padding))
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2023-01-23 14:28:48 -05:00
|
|
|
[data-popper-reference-hidden] {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2022-11-02 09:41:30 -04:00
|
|
|
}
|