Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce Fixed Height for Hivechat Window to Improve Usability and Responsiveness #807

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions src/people/hiveChat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ interface SendButtonProps {
const Container = styled.div`
display: flex;
flex-direction: column;
height: calc(100vh - 40px);
padding: 20px;
overflow-y: scroll;
overflow-x: hidden;
height: 100vh;
padding: 0 20px;
overflow: hidden;
background: var(--Search-bar-background, #f2f3f5);
`;

const ChatBody = styled.div`
display: flex;
flex-direction: column;
padding: 15px 60px !important;
height: calc(100vh - 40px);
padding: 3px 60px 75px !important;
flex: 1;
overflow: hidden;
`;

const Header = styled.div`
Expand Down Expand Up @@ -87,6 +87,7 @@ const ChatHistory = styled.div`
background: white;
margin: 1px 0;
border-radius: 8px;
min-height: 0;
`;

const MessageBubble = styled.div<{ isUser: boolean }>`
Expand All @@ -108,7 +109,9 @@ const InputContainer = styled.div`
gap: 12px;
padding: 16px 0;
border-radius: 0 0 8px 8px;
margin-top: 15px;
position: sticky;
bottom: 0;
margin: 0;
`;

const TextArea = styled.textarea`
Expand All @@ -122,6 +125,7 @@ const TextArea = styled.textarea`
font-family: inherit;
font-size: 14px;
line-height: 1.4;
margin-bottom: 0;
transition: border-color 0.2s ease;

&:hover {
Expand All @@ -142,9 +146,11 @@ const SendButton = styled.button<{ disabled: boolean }>`
border-radius: 8px;
cursor: ${(props: SendButtonProps) => (props.disabled ? 'not-allowed' : 'pointer')};
font-weight: 500;
align-self: flex-end;
align-self: center;
height: fit-content;
transition: background-color 0.2s;
margin-bottom: 13px;
margin: 0;

&:hover:not(:disabled) {
background-color: #3367d6;
Expand Down
Loading