Skip to content

Commit

Permalink
Fix colors
Browse files Browse the repository at this point in the history
  • Loading branch information
easafe committed Jun 8, 2024
1 parent d072548 commit 092c9bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/Client/css/im.css
Original file line number Diff line number Diff line change
Expand Up @@ -1015,11 +1015,17 @@ svg.toolbar-action {
}

.user-menu.in-message {
background-color: #373737;
background-color: #212120;
right:10px;
top:32px;
}

.incoming-message .message-context-menu.outer-user-menu {
background-color: #373737 !important;
}

.user-menu.in-message.menu-up {
top: -82px;
top: -92px;
}

.modal-menu .back {
Expand Down
3 changes: 1 addition & 2 deletions src/Server/Im/Database.purs
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ insertMessage loggedUserId recipient temporaryId content = SD.withTransaction $
insertKarma r. Int Int Tuple Int Int BaseEffect { pool Pool | r } Unit
insertKarma loggedUserId userId (Tuple senderKarma recipientKarma)
| senderKarma <= 0 && recipientKarma <= 0 = pure unit
| otherwise = do
liftEffect $ EC.log $ "karma turn: users " <> show loggedUserId <> " and " <> show userId <> " making " <> show senderKarma <> " and " <> show recipientKarma
| otherwise =
SD.withTransaction $ \connection → do
when (senderKarma > 0) (SD.executeWith connection $ insert # into karma_histories (_amount /\ _target) # values (senderKarma /\ loggedUserId))
when (recipientKarma > 0) (SD.executeWith connection $ insert # into karma_histories (_amount /\ _target) # values (recipientKarma /\ userId))
Expand Down

0 comments on commit 092c9bc

Please sign in to comment.