bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-reply-intention/styles.tsx
Joao a5a3a0a391 fix(chat): a lot of reply UI fixes
- Fixed reply container height
- Positioning of the reply element
- Stacking of elements
- chatEmphasizedText in replies
- Support for markdown
2024-10-03 16:24:32 -03:00

69 lines
1.3 KiB
TypeScript

import styled, { css } from 'styled-components';
import {
colorBlueLight,
colorOffWhite,
} from '/imports/ui/stylesheets/styled-components/palette';
import Button from '/imports/ui/components/common/button/component';
const Container = styled.div<{ $hidden: boolean; $animations: boolean }>`
border-radius: 4px;
border-left: 4px solid ${colorBlueLight};
background-color: ${colorOffWhite};
position: relative;
overflow: hidden;
${({ $hidden }) => ($hidden
? css`
height: 0;
`
: css`
height: 6rem;
padding: 6px;
margin-right: 0.75rem;
margin-bottom: 0.25rem;
`
)}
${({ $animations }) => $animations
&& css`
transition-property: height;
transition-duration: 0.1s;
`}
`;
const Typography = styled.div`
line-height: 1rem;
font-size: 1rem;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
`;
const Username = styled(Typography)`
font-weight: bold;
color: ${colorBlueLight};
line-height: 1rem;
height: 1rem;
font-size: 1rem;
`;
const Message = styled.div`
// Container height - Username height - vertical padding
max-height: calc(5rem - 12px);
overflow: hidden;
`;
// @ts-ignore
const CloseBtn = styled(Button)`
position: absolute;
top: 2px;
right: 2px;
`;
export default {
Container,
Username,
CloseBtn,
Message,
};