1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-17 01:43:23 +02:00
market/src/components/@shared/DirectMessages/Postbox.module.css
Marco Elissa 8fd3eaf8de
Encrypted Direct Messaging module (#1870)
* add orbis context

* new changes

* Add orbis floating chat

* adding orbis function

* load orbis conversations

* update message button in profile

* minor fix conversation styles

* update orbis version

* adding details conditional

* updating post comment function

* Update send message button style

* Fix send message button css

* udpate orbis

* update posts and floating function

* Add chatbox emoji

* Add Emoji Picker Theme

* useDarkMode emoji fix

* remove next dynamic on emoji picker

* show conversation title from participant

* update callbackMessage.

* Update Emoji Picker

* Add Emoji Picker to Postbox

* rename FloatingChat to DirectMessages

* create some global orbis components

* update package-lock.json

* change any type

* change Blockie to Avatar component

* fix type errors

* fix infinite loop when no comment found

* Hide send message button on ownAccount profile

* Delete unused component

* minor changes

* update orbis comment and DM components

* fix load older messages on DM scroll

* fixed orbis createPost

* update optional wallet signs

* add return value on connect

* add padding bottom to compensate DM component

* add conditional connect and sign button

* update direct message component

* update get notifications logic

* rerun npm install

* rerun npm install

* temporary push

* rerun npm install

* add new custom hooks

* run npm install

* update flow on address changed

* update custom DID string

* remove lit auth signatures on resetStates()

* add hasLit condition on getMessages

* add removeCeramicSession function

* useLocalStorage to store notifications

* minor bug fix

* update styles for conversation details

* use getEnsName util

* update create conversation flow

* rerun npm install

* update typescript

* update orbis sdk version

* temporary push

* revisions

* update orbis version

* update notifs count and conversation creation flow

* update orbis types

* add toast after copy address

* add message decryption refresh button

* rerun npm install

* remove comment from asset page

* test push

* remove lit-auth-signature on wallet changed

* update orbis SDK to v0.4.14

* update copy

* update Orbis SDK to v0.4.17

* update copy

* create new DM button component and add to asset

* add send button and remove emojiPicker

* Revert "Merge branch 'main' into orbis"

This reverts commit 3cdaf54827, reversing
changes made to 02f2acb774.

* Revert "Revert "Merge branch 'main' into orbis""

This reverts commit a5a32b1534.

* update new conversation flow

* update intro message

* minor fix typo

* remove unused package and fixed outdated versions

* remove comment component and restructured folders

* update orbis-sdk

* small cleanup

* direct message button style updates

---------

Co-authored-by: Nuary Pradipta <nuary.pradipta@gmail.com>
Co-authored-by: Dollar Bull <ramadhanakhri@gmail.com>
Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
2023-04-05 09:22:57 +03:00

90 lines
1.7 KiB
CSS

.postbox {
width: 100%;
flex-shrink: 0;
border-top: 1px solid var(--border-color);
padding: calc(var(--spacer) / 4) calc(var(--spacer) / 2);
}
.postbox .postboxInput {
position: relative;
display: flex;
align-items: flex-end;
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
}
.postbox .editable {
overflow-wrap: break-word;
white-space: pre-wrap;
flex-grow: 1;
outline: none;
max-height: 80px;
overflow-y: auto;
-ms-overflow-style: none;
scrollbar-width: none;
padding: calc(var(--spacer) / 4);
}
.postbox .editable:empty:before {
content: attr(data-placeholder);
color: var(--color-secondary);
pointer-events: none;
}
.postbox .editable::-webkit-scrollbar {
display: none;
}
.replyto {
position: relative;
display: flex;
align-items: flex-start;
gap: calc(var(--spacer) / 2);
padding: calc(var(--spacer) / 2);
font-size: var(--font-size-small);
background: var(--background-highlight);
border-top-left-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
}
.replytoDetails {
flex-grow: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.replytoCancel {
flex-shrink: 0;
font-size: var(--font-size-large);
line-height: 1;
font-weight: bold;
background: transparent;
border: none;
color: currentColor;
outline: none;
}
.sendButton {
background-color: transparent;
border: 0;
color: var(--color-primary);
width: 41px;
height: 41px;
display: flex;
align-items: center;
justify-content: center;
border-left: 1px solid var(--border-color);
cursor: pointer;
}
.sendButton:disabled {
color: var(--color-secondary);
cursor: default;
}
.sendButton .icon {
width: 24px;
fill: currentColor;
}