-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
adapt chat window size #1556
Comments
It sounds like you may need to specify the size of your Web Chat window. On your
quoted from #1550:
If adding the css to your page does not fix the display of webchat, could you share your |
Thank you for your quick and helpful response @corinagum. I managed to fix the window size by adding the following code:
Unfortunately, there is still something I can't seem to fix without help. The chat messages are "cut off" at the edge (see image below). I tried to use CSS padding, but this applies to the whole chat window and the messages still aren't displayed correctly. When I insert the same HTML code into a real-time HTML editor, the messages are not cut off, so it must have something to do with LimeSurvey. Additionally, I don't have an index.html file, LimeSurvey just provides a "question" text/code editor but it is not possible to insert head or body. |
I should have asked in my first comment whether you are using v3 or v4 of webchat, but I infer from #webchat being modified in your screenshot that you are using v4. (woops! :P) My first guess is that your width may be too small, or perhaps LimeSurvey is shrinking the content. If you paste me your entire code (that is in the text editor), I can try to help further. Please note that Web Chat v4 also uses css-in-js to modify styling within the component, so adding background-color is not our recommended way of adjusting styling/customization. You can look at the samples 05.a.branding-webchat-styling or 05.b.idiosyncratic-manual-styling (05.a is recommended) [edit to add]: these samples are bare bones right now, but we plan to add more detail into the README.md's soon. |
Yes, I'm using v4 :) Gladly, a person related to LimeSurvey could fix the issues by adding some CSS code. This is my current code from the text editor:
Thanks for your advice in terms of styling/customization. I already included it in my code. Unfortunately, some options don't seem to work for me (avatar, hide upload button). I used "defaultStyleSetOptions.js" as a reference for available style options. Do you have an idea why this is the case (it doesn't only apply for LimeSurvey but also for a normal browser window)? When using the bot framework emulator, the timestamp also included the sender's name (e.g. "Bot at 11:04"). In the samples from this repo, the name isn't present anymore and the timestamp options only allow to change the color. Is there a way to include and customize the bot's name below each message? Also: do you want me to open a new thread for this "style" discussion? |
@FRANZKAFKA13 We can continue on this conversation :) Thanks for pointing out that some of the samples don't work for you -- both the avatar and upload button samples are relatively recent additions that won't work on the latest publish of Web Chat. If you are interested, you can update your cdn to use the un-released latest, 4.2.1-master.d9808ca - We hope to have these samples as part of a new release (4.2.1) very soon, meaning you would be able to change your cdn link back to Let me know how that goes for you, or if you have any questions. |
Thank you, it worked like a charm :-) It was also possible to hide the upload button with the css Is there any downside of using the latest review apart from potential instabilities? I'd be really glad if you were able to answer my question about the "timestamp" / name tag below each message! |
One thing I forgot about our samples -- we recommend using The biggest downside (aside from possible instabilities) is that you will have to manually change your CDN back to As for instabilities, anyone using I missed your timestamp question -- unfortunately, there's no easy way to style the timestamp section of web chat in v4. However, this is the second time that someone has pointed out this feature as something they want to implement, so I will file and issue and we can address it with the team. |
(closing this issue since it looks like everything is covered - if I'm incorrect, please leave another comment and I can reopen) |
I'm using a modal and am having the same problems with the messages and timestamps being cut off. I was able to fix it similar to how FRANZKAFKA13 did. However, the id's from his fix are different then mine. I ended up removing them and using the other classes to fix it. The bottom also appears to be cutoff and I have not found a way to fix this. Why is this happening? Below is my code.
This is a screenshot of what the modal looks like with only the #chatWindow styling. |
Hey @rosskyl it looks like you don't have a width applied to Please keep in mind that we strongly encourage our users to use glamor instead of CSS to change stylings. You can look at the samples 05.a.branding-webchat-styling or 05.b.idiosyncratic-manual-styling (05.a is recommended) for more information on styling. |
@rosskyl This does not completely fix the problem, but I was able improve the bubble look at little with some styling like this. I have not been able to get the timestamp to appear correctly. Also the bubbles are missing either a left or a right border. annoying...
|
@rosskyl sorry for the late reply - if you're still having problems with this, please send me your webchat file so I can take a look. If you prefer to do that over email, you can send to [email protected] Thanks! |
@corinagum @rosskyl if you have a good solution to the cut off bubbles I would appreciate it if you would post the solution. |
@ImKator please feel free to send me your web chat page also so I can take a look :) |
Sent |
@corinagum I found a solution to my styling problems. I am sure there are better ways to do this, but this does fix the cut off borders. My issue involved some boot strap issues. Anyhow... ::ng-deep { |
I'm new to HTML but I need to setup my bot on a limesurvey website. When I insert the HTML code for the web chat control, the chat starts small but gets bigger with every message.
How can I fix the chat size to a predefined size?
Thank you in advance
The text was updated successfully, but these errors were encountered: