Skip to content

Commit

Permalink
fix height of chatplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AitorAlgorta authored and Christoph Pröschel committed Jul 20, 2021
1 parent 75cc751 commit c713c1c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions frontend/chat-plugin/image/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ web_library(
module_deps = ["//frontend/chat-plugin/lib:chat-plugin"] + module_deps,
output = {
"libraryExport": "AiryWidget",
# Automatically detects script host and uses it for further loading
# https://webpack.js.org/guides/public-path/#automatic-publicpath
"publicPath": "auto",
"filename": "s.js",
},
Expand Down
1 change: 1 addition & 0 deletions frontend/chat-plugin/image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ anchor.style.cssText = `
position: fixed;
width: -webkit-fill-available;
width: -moz-available;
height: 100%;
right: 0;
bottom: 0;
z-index: 9999;
Expand Down
1 change: 1 addition & 0 deletions frontend/chat-plugin/lib/src/AiryChatPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const AiryChatPlugin = (props: AiryChatPluginProps) => {

const customStyle = {
background: 'transparent',
height: '100%',
...(config.config?.primaryColor && {
'--color-airy-blue': config.config?.primaryColor,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.inputBar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
margin: 0 8px;
border-top: 1px solid var(--color-template-gray);
Expand All @@ -17,7 +18,7 @@
min-height: 32px;
width: 100%;
padding: 4px 4px 0 8px;
margin-right: 8px;
margin: 0 8px 0 0;
font-family: 'Lato', sans-serif;
font-size: 16px;
letter-spacing: 0;
Expand All @@ -32,6 +33,7 @@
width: 100%;
justify-content: center;
margin: 0 0 8px 0px;

a {
display: flex;
color: var(--color-text-gray);
Expand All @@ -40,11 +42,13 @@
font-family: 'Lato', sans-serif;
font-size: 12px;
align-items: center;

svg {
height: 20px;
width: 20px;
transform: scale(0.7);
margin-top: 1px;

path {
fill: var(--color-text-gray);
}
Expand Down Expand Up @@ -106,7 +110,7 @@
max-height: 28px;
width: auto;
height: auto;
padding: 0px 1px 1px 0px;
padding: 0 1px 1px 0;
}

svg {
Expand All @@ -120,7 +124,6 @@
justify-content: center;
align-items: flex-end;
height: 100%;
margin-bottom: 10px;
}

.emojiDrawer {
Expand All @@ -144,6 +147,7 @@
svg {
width: 22px;
pointer-events: none;

path {
fill: #a0abb2;
}
Expand Down Expand Up @@ -174,6 +178,7 @@
.iconButton:hover {
background-color: var(--color-background-blue);
border-radius: 50%;

svg {
path {
fill: #4bb3fd;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const AiryInputBar = (props: AiryInputBarProps) => {
ref={textInputRef}
className={style.textArea}
placeholder={'Start typing...'}
autoFocus={!config.showMode ? true : false}
autoFocus={!config.showMode}
onChange={handleChange}
onKeyDown={handleKeyDown}
value={props.messageString}
Expand All @@ -143,7 +143,7 @@ const AiryInputBar = (props: AiryInputBarProps) => {
<div className={style.buttonContainer}>
<InputOptions />
<button className={style.sendButton} type="submit" data-cy={dataCyButtonId}>
{config?.sendMessageIcon ? <img src={config.sendMessageIcon} /> : <Paperplane />}
{config?.sendMessageIcon ? <img src={config.sendMessageIcon} alt={'send message'} /> : <Paperplane />}
</button>
</div>
</form>
Expand Down

0 comments on commit c713c1c

Please sign in to comment.