Skip to content

Commit

Permalink
Change icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
aiql-admin authored Jul 12, 2024
1 parent 76c35b2 commit dc0ebf2
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
.input-icon {
width: auto;
position: absolute;
padding-left: 10px;
padding-left: 7px;
bottom: 0;
flex: 1;
}
Expand All @@ -106,13 +106,13 @@

.input-panel {
flex: 1;
max-width: 1254px;
max-width: 1256.7px;
border-radius: 5px;
margin: 0 auto;
}

.input-box {
margin-left: 55px;
margin-left: 53px;
}
}

Expand Down Expand Up @@ -152,8 +152,8 @@
.toolbox-button {
position: fixed;
background-color: #1867C0;
bottom: 100px;
right: -45px;
bottom: 94px;
right: -46px;
z-index: 999;
padding: 0.5rem 1rem;
border-top-left-radius: 0.5rem;
Expand All @@ -177,7 +177,7 @@
.toolbox {
z-index: 999;
position: fixed;
bottom: 150px;
bottom: 145px;
right: 5px;
}

Expand Down Expand Up @@ -322,9 +322,9 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
<v-container class="chat-bot" v-if="messageStore.conversation.length > 0">
<div class="message-area" v-for="message in messageStore.conversation">
<div v-if="message.role === 'user'">
<div class="px-3 py-5 user-message">
<div class="message align-center text-pre-wrap">
<v-avatar :size=settingStore.avatarSize class="mr-3 mr-lg-6" color="primary"
<div class="px-2 py-5 user-message">
<div class="message text-pre-wrap">
<v-avatar :size=settingStore.avatarSize class="mt-3 mr-3 mr-lg-6" color="primary"
icon="mdi-account-circle">
</v-avatar>
<v-card class="gradient text-pre-wrap">
Expand All @@ -336,9 +336,9 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
</div>
</div>
<div v-else>
<div class="px-3 py-5 assitant-message">
<div class="px-2 py-5 assitant-message">
<div class="message">
<v-avatar :size=settingStore.avatarSize class="mt-2 mr-3 mr-lg-6" color="teal"
<v-avatar :size=settingStore.avatarSize class="mt-3 mr-3 mr-lg-6" color="teal"
icon="mdi-lightning-bolt-circle">
</v-avatar>
<v-card>
Expand All @@ -359,17 +359,17 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
<div class="input-area">
<v-col class="input-icon">
<v-row>
<v-btn size="26" class="mx-6 mb-2" color="primary" variant="elevated" icon="mdi-alpha-a-circle"
<v-btn :size=settingStore.avatarSize class="mx-6 mb-2" color="primary" variant="elevated" icon="mdi-alpha-a-circle"
@click="settingStore.agentDialog = true">
</v-btn>
</v-row>
<v-row>
<v-btn size="26" class="mx-6 mb-2" color="primary" variant="elevated" icon="mdi-alpha-i-circle"
<v-btn :size=settingStore.avatarSize class="mx-6 mb-2" color="primary" variant="elevated" icon="mdi-alpha-i-circle"
@click="settingStore.initDialog">
</v-btn>
</v-row>
<v-row>
<v-btn size="26" class="mx-6 mb-5" color="primary" variant="elevated" icon="mdi-alpha-q-circle"
<v-btn :size=settingStore.avatarSize class="mx-6 mb-5 mb-lg-6" color="primary" variant="elevated" icon="mdi-alpha-q-circle"
@click="settingStore.configHistory = true">
</v-btn>
</v-row>
Expand All @@ -382,7 +382,7 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
@blur="settingStore.inputRow = 1">

</v-textarea>
<v-btn size="43" class="ml-2 mb-7 shadow" color="primary" variant="elevated"
<v-btn size="small" class="ml-2 ml-lg-3 mb-7 shadow" color="primary" variant="elevated"
@click="messageStore.sendMessage" icon="mdi-alpha-l">

</v-btn>
Expand Down Expand Up @@ -423,7 +423,7 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
<template v-slot:prepend>
<v-btn :color="historyStore.getColor(index)" class="mr-3" icon size="small"
@click="historyStore.select(index)">
{{item.raw.history.length}}
<b>{{item.raw.history.length}}</b>
</v-btn>
</template>
<v-card-title>
Expand Down Expand Up @@ -716,7 +716,7 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
id: "settingStore",
state: () => ({
inputRow: 1,
avatarSize: 48,
avatarSize: 24,
configDialog: false,
configHistory: false,

Expand Down Expand Up @@ -1181,10 +1181,11 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
};

const resizeAvatar = () => {
if (window.innerWidth <= 800) {
settingStore.avatarSize = 24
console.log(window.innerWidth)
if (window.innerWidth <= 1340) {
settingStore.avatarSize = 26
} else {
settingStore.avatarSize = 48
settingStore.avatarSize = 36
}
};

Expand Down

0 comments on commit dc0ebf2

Please sign in to comment.