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

how to change the web widget icon? #51

Open
mdhafizur opened this issue Dec 13, 2019 · 2 comments
Open

how to change the web widget icon? #51

mdhafizur opened this issue Dec 13, 2019 · 2 comments

Comments

@mdhafizur
Copy link

No description provided.

@claretnnamocha
Copy link

When defining the botmanWidget variable, you need to specify the url with the key bubbleAvatarUrl like so.

    var botmanWidget = {
        bubbleAvatarUrl: '/path/to/image'    
   };

@AKApumkin
Copy link

+1 while you can change it, it is bound to the in-line JS CSS.This has issues if you want to use images that are not round.

So a quick workaround if you want to use any image and not be limited by this. Locally host the JavaScript, un-minifiy it and remove the following as shown below.

//approximately line 907 
        c = {
            display: "flex",
            justifyContent: "center",
            position: "absolute",
            top: "38px",
            right: "20px",
            height: "60px",
            width: "60px",
            border: 0,
            borderRadius: "50%", //REMOVE
            boxShadow: "0px 0px 20px rgba(0, 0, 0, 0.2)" //REMOVE
        },
        u = {
            display: "block",
            position: "absolute",
            top: "46px",
            right: "20px",
            height: "52px",
            width: "52px",
            border: 0,
            borderRadius: "50%", //REMOVE
            boxShadow: "0px 0px 20px rgba(0, 0, 0, 0.2)" //REMOVE
        },
        p = {
            width: "100%",
            height: "auto",
            borderRadius: "999px" //REMOVE
        }

Not sure if i can raise this here or start an a new issue/request to 'not to have any of CSS in-line in the main JS file or any external files' as hacking at it is painfully slow as obfuscating names are used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants