Skip to content

Commit a8cc95e

Browse files
committed
fix:调整AI图标
1 parent 12b7fa3 commit a8cc95e

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

packages/layout/src/DesignPlugins.vue

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -290,28 +290,10 @@ export default {
290290
svg {
291291
font-size: 22px;
292292
}
293-
294-
.chatgpt-icon {
295-
width: 18px;
296-
height: 18px;
297-
}
298293
}
299294
}
300295
}
301296
302-
.robot-dialog {
303-
position: fixed;
304-
width: 700px;
305-
z-index: 5;
306-
right: 40px;
307-
bottom: 40px;
308-
background-color: var(--ti-lowcode-common-component-bg);
309-
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.15);
310-
border: 1px solid #dbdbdb;
311-
padding: 10px 20px 30px;
312-
border-radius: 12px;
313-
}
314-
315297
:deep(.panel-svg) {
316298
font-size: 22px;
317299
}

packages/plugins/robot/src/Main.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<div title="AI对话框">
3+
<div title="AI对话框" class="robot-img">
44
<img class="chatgpt-icon" src="../assets/AI.png" @click="openAIRobot" />
55
</div>
66
<Teleport to="body">
@@ -384,10 +384,18 @@ export default {
384384
</script>
385385
386386
<style lang="less" scope>
387-
.chatgpt-icon {
388-
width: 18px;
389-
height: 18px;
387+
.robot-img {
388+
display: flex;
389+
justify-content: center;
390+
align-items: center;
391+
width: 32px;
392+
height: 32px;
393+
.chatgpt-icon {
394+
width: 18px;
395+
height: 18px;
396+
}
390397
}
398+
391399
.robot-dialog {
392400
position: fixed;
393401
width: 700px;

0 commit comments

Comments
 (0)