Browse Source
- Added a new emoji picker and its presentation logic - Added ability to delete a chat room (as owner) - Removing a chat message now also removes all attachments on that message from storage - Fixed many UI bugs in chat view -develop
15 changed files with 194 additions and 22 deletions
@ -1,2 +1,5 @@ |
|||||
# DTP Chat |
# DTP Chat |
||||
This project is currently being used to develop an all-new harness for developing and deploying DTP web apps. Gulp is now gone, it's based on Webpack, Nodemon and BrowserSync. |
This project is currently being used to develop an all-new harness for developing and deploying DTP web apps. Gulp is now gone, it's based on Webpack, Nodemon and BrowserSync. |
||||
|
|
||||
|
## Emoji Picker |
||||
|
Chat currently uses [emoji-picker-element](https://www.npmjs.com/package/emoji-picker-element) as the renderer of an emoji picker, and then it manages the presentation of the picker itself. |
@ -0,0 +1,8 @@ |
|||||
|
.emoji-picker-display |
||||
|
.emoji-picker-prompt.sr-only Select an emoji |
||||
|
emoji-picker( |
||||
|
class={ |
||||
|
'dark': (user && (user.ui.theme === 'chat-dark')), |
||||
|
'light': (!user || (user.ui.theme === 'chat-light')), |
||||
|
} |
||||
|
) |
@ -0,0 +1,22 @@ |
|||||
|
.emoji-picker-display { |
||||
|
position: fixed; |
||||
|
top: 0; right: 0; bottom: 0; left: 0; |
||||
|
|
||||
|
display: none; |
||||
|
flex-direction: column; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
|
||||
|
background: rgba(0,0,0, 0.8); |
||||
|
color: #e8e8e8; |
||||
|
|
||||
|
&.picker-active { |
||||
|
display: flex; |
||||
|
} |
||||
|
|
||||
|
.emoji-picker-prompt { |
||||
|
margin-bottom: 10px; |
||||
|
font-size: 1.5em; |
||||
|
color: #e8e8e8; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue