This is a migrated thread and some comments may be shown as answers.

Conversational UI multiple attachment alignment

5 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 17 Sep 2020, 08:02 AM

Hi,

It looks like attachments are always aligned to the left even if they are from the current user https://stackblitz.com/edit/react-ypqn8l?file=app/main.jsx . How to align only user attachments to the right?

5 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 18 Sep 2020, 11:04 AM

Hello Matej,

Please try to apply the following CSS rule: 

.k-chat .k-alt + div[class=""] {
    margin-left: auto;
}

I have updated the example to demonstrate it:

https://stackblitz.com/edit/react-ggyh4n-gzeftt?file=app%2Fmain.jsx

Best Regards,
Silviya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Matej
Top achievements
Rank 1
Veteran
answered on 18 Sep 2020, 11:35 AM
thx, any plans to add this directly to the source styles? btw attachmentLayout: "carousel" is also aligned always to the left.
0
Stefan
Telerik team
answered on 22 Sep 2020, 06:56 AM

Hello, Matej,

Indeed, aligning the attachments based on the author sounds like a nice improvement.

We will discuss that and return to you, as changing it built-in can break the layout of the component which are already using their own logic for positioning it.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Silviya
Telerik team
answered on 29 Sep 2020, 08:19 AM

Hi Matej,

I'm writing to follow you up on the alignment of the attachments in the Conversational UI component. After discussing the scenario with the team, we decided to log it as an enhancement and apply the needed changes to place attachments based on the user who attaches them.

You can check the issue here:

https://github.com/telerik/kendo-themes/issues/1929

As a token of gratitude, I have updated your Telerik Points. Thank you for your valuable feedback!

Best Regards,
Silviya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Matej
Top achievements
Rank 1
Veteran
answered on 29 Sep 2020, 08:30 AM
Awesome, thank you!
Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Silviya
Telerik team
Matej
Top achievements
Rank 1
Veteran
Stefan
Telerik team
Share this question
or