Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

DirectChatContent.styled.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { Box } from "@mui/material";
  2. import styled from "styled-components";
  3. import exchangeStatus from "../../../constants/exchangeStatus";
  4. import selectedTheme from "../../../themes";
  5. export const DirectChatContentContainer = styled(Box)`
  6. border: 1px solid ${selectedTheme.colors.borderNormal};
  7. margin-top: 18px;
  8. border-radius: 4px;
  9. min-height: 600px;
  10. background-color: white;
  11. position: relative;
  12. `;
  13. export const MessagesList = styled(Box)`
  14. padding: 18px 36px;
  15. position: relative;
  16. max-height: 425px;
  17. height: ${(props) =>
  18. props.exchangeState === exchangeStatus.ACCEPTED ||
  19. props.exchangeState === exchangeStatus.I_OFFERED ||
  20. props.exchangeState === exchangeStatus.REVIEWED
  21. ? "385px"
  22. : "425px"};
  23. overflow-y: auto;
  24. display: flex;
  25. flex-direction: column;
  26. /* justify-content: flex-end; */
  27. /* align-items: flex-end; */
  28. @media (max-width: 600px) {
  29. padding: 18px 18px;
  30. }
  31. &::-webkit-scrollbar {
  32. width: 5px;
  33. }
  34. &::-webkit-scrollbar-track {
  35. background: #ddd;
  36. }
  37. &::-webkit-scrollbar-thumb {
  38. background: #777;
  39. }
  40. scrollbar-width: thin;
  41. scrollbar-color: #ddd;
  42. `;
  43. export const MessageContainer = styled(Box)``;