Skip to content

Commit 0a60773

Browse files
authored
Merge pull request #187 from yel-hadd/master
Minor Chatbot Widget UI tweaks
2 parents 892a914 + 15f1830 commit 0a60773

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

docs/.vuepress/components/Chat.vue

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
:class="{ fullscreen: isMobile, 'desktop-view': !isMobile }"
4444
>
4545
<div class="chat-header">
46-
<div class="header-content">
47-
<img
48-
:src="botOptions.botAvatarImg"
49-
alt="Bot icon"
50-
class="header-avatar"
51-
/>
52-
<span class="bot-title">{{ botOptions.botTitle }}</span>
53-
</div>
5446
<div class="header-actions">
5547
<button class="close-btn" @click="toggleChat">
5648
<svg
@@ -86,17 +78,11 @@
8678
</template>
8779

8880
<script>
89-
import BotIcon from "cl-doc-vue-bot-ui/src/assets/icons/bot.png";
90-
9181
export default {
9282
data() {
9383
return {
9484
showChat: false,
9585
isLoading: true,
96-
botOptions: {
97-
botAvatarImg: BotIcon,
98-
botTitle: "AI Assistant",
99-
},
10086
iframeUrl: "https://chatbot.cloudlinux.com/docs/tuxcare",
10187
windowWidth: 0, // Changed from window.innerWidth to avoid SSR error
10288
};
@@ -265,27 +251,9 @@ mobile-breakpoint = 768px
265251
color: white
266252
padding: 1rem 1.5rem
267253
display: flex
268-
justify-content: space-between
254+
justify-content: flex-end
269255
align-items: center
270256
271-
.header-content {
272-
display: flex
273-
align-items: center
274-
275-
.header-avatar {
276-
width: 32px
277-
height: 32px
278-
border-radius: 50%
279-
margin-right: 10px
280-
object-fit: cover
281-
}
282-
283-
.bot-title {
284-
font-weight: 600
285-
font-size: 1rem
286-
}
287-
}
288-
289257
.header-actions {
290258
display: flex
291259
align-items: center

0 commit comments

Comments
 (0)