-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Message content width (#16533)
* feat: Message content width * feat: Group messages in the chat by user and timestamp (#16496) * feat: Group messages in the chat by user and timestamp * feat: Prepare new version * improve message asset read indicator * revert opacity to 0 for not hovered message * revert expectsReadConfirmation * clear unecessary styles
- Loading branch information
Showing
10 changed files
with
271 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/script/components/MessagesList/Message/ReadIndicator/ReadIndicator.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2024 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
import {CSSObject} from '@emotion/react'; | ||
|
||
export const ReadReceiptText: CSSObject = { | ||
display: 'inline-flex', | ||
alignItems: 'center', | ||
verticalAlign: 'bottom', | ||
}; | ||
|
||
export const ReadIndicatorStyles = (showIconOnly = false): CSSObject => ({ | ||
color: 'var(--gray-70)', | ||
fontSize: 'var(--font-size-small)', | ||
fontWeight: 'var(--font-weight-medium)', | ||
lineHeight: 'var(--line-height-sm)', | ||
|
||
svg: { | ||
width: '10px', | ||
minHeight: '10px', | ||
marginRight: '4px', | ||
fill: 'currentColor', | ||
}, | ||
|
||
...(showIconOnly && { | ||
display: 'flex', | ||
alignItems: 'center', | ||
marginLeft: '8px', | ||
}), | ||
|
||
'.message-asset &': { | ||
marginTop: '8px', | ||
marginLeft: '12px', | ||
}, | ||
|
||
...(!showIconOnly && { | ||
opacity: 0, | ||
'.message:hover &': { | ||
opacity: '1', | ||
}, | ||
}), | ||
}); |
Oops, something went wrong.