BirdNETM | 632c061 | 2025-05-27 17:41:40 +0800 | [diff] [blame] | 1 | .message-page { |
| 2 | .selected { |
| 3 | background-color: #f0f2f5; |
| 4 | } |
| 5 | |
| 6 | .chat-message { |
| 7 | margin: 8px 0; |
| 8 | padding: 8px; |
| 9 | border-radius: 4px; |
| 10 | |
| 11 | &.sent { |
| 12 | background-color: #e6f7ff; |
| 13 | margin-left: 40px; |
| 14 | } |
| 15 | |
| 16 | &.received { |
| 17 | background-color: #f0f2f5; |
| 18 | margin-right: 40px; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | .message-input { |
| 23 | border-top: 1px solid #f0f0f0; |
| 24 | padding-top: 16px; |
| 25 | } |
| 26 | |
| 27 | .message-list { |
| 28 | height: calc(100vh - 200px); |
| 29 | overflow-y: auto; |
| 30 | } |
| 31 | |
| 32 | .chat-container { |
| 33 | display: flex; |
| 34 | flex-direction: column; |
| 35 | height: calc(100vh - 100px); |
| 36 | } |
| 37 | |
| 38 | .chat-messages { |
| 39 | flex: 1; |
| 40 | overflow-y: auto; |
| 41 | padding: 16px; |
| 42 | } |
| 43 | |
| 44 | .ant-list-item { |
| 45 | transition: background-color 0.3s; |
| 46 | |
| 47 | &:hover { |
| 48 | background-color: #f5f5f5; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | } |
| 53 | |
| 54 | .message-page { |
| 55 | .chat-message { |
| 56 | &.sent { |
| 57 | .ant-list-item-meta { |
| 58 | text-align: right; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | &.received { |
| 63 | .ant-list-item-meta { |
| 64 | text-align: left; |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | .selected { |
| 70 | background-color: #f0f8ff; |
| 71 | } |
| 72 | } |