The brand needs the Avatar of the Bot to be a square instead of a circle
See original GitHub issueDescribe the suggestion or request in detail
The brand needs the Avatar of the Bot to be a square instead of a circle
Describe alternatives you have considered
Currently we are changing this style with jQuery command:
jQuery('#webchat').find('div').filter('.avatar').not('.from-user').css('border-radius', '0%')
But sometimes webchat is not rendering as we like and happens this:
and of course it is not efficient to do so
Additional context
I would like to use new styleOptions like: botAvatarShapeAsCircle (boolean) userAvatarShapeAsCircle (boolean)
const styleOptions = {
...
botAvatarImage: baseUrl.concat('/img/avatar_bot_squ.png'),
botAvatarInitials: 'BOT',
botAvatarBackgroundColor: 'white',
botAvatarShapeAsCircle: false,
userAvatarImage: webchatItem.userAvatar,
userAvatarInitials: 'USER',
userAvatarBackgroundColor: 'white',
userAvatarShapeAsCircle: true,
...
}
With an implementation similar to this on createAvatarStyle… :
export default function createAvatarStyle({
accent,
avatarSize,
botAvatarBackgroundColor,
botShapeAsCircle,
primaryFont,
userAvatarBackgroundColor
}) {
var borderRadiusValue = '50%'
if !botShapeAsCircle borderRadiusValue = 'inherit'
return {
alignItems: 'center',
borderRadius: borderRadiusValue,
...
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Twitter Switches Brand Profile Avatars to Squares to Counter ...
As you can see in this image, posted by social media expert Matt Navarra, brand profiles are now showing up as square tiles,...
Read more >How can I set an image or thumbnail as the bot's avatar in ...
so if I wanted to set thumbnail or image as bot's avatar, what would would I do? I tried: embed.set_author(name=bot.name, icon_url=bot.avatar.
Read more >Why does squaring of the radius of a circle times pi give us the ...
Essentially, you need to square some linear measure of the circle to get to an area. The radius and the circumference are in...
Read more >How the Logo Shape Affects Customers - ZenBusiness
The circle is so versatile that it is used as a symbol of various companies including non-profit organizations, retailers, restaurants, finance ...
Read more >Changing the Design of Your Widget and Bot - Drift Help
In this doc we'll cover. Changing Your Widget Design; Color Guide; Changing Your Bot Avatar. Drift Insider Note: Did you know we have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eduardmartos You can currently modify the style set to change the avatars border radius. Take a look at the code snippet below.
Screenshot
Web Chat v4.7.1
Additional Context
https://github.com/microsoft/BotFramework-WebChat/issues/1977
@corinagum @compulim Should we consider adding
userAvatarBorderRadius
andbotAvatarBorderRadius
to the default style options?@tdurnford my vote is yes 😃