File tree Expand file tree Collapse file tree 2 files changed +5
-46
lines changed
src/views/ai/chat/index/components/role Expand file tree Collapse file tree 2 files changed +5
-46
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" category-list " >
3
- <div class =" category " v-for =" category in categoryList" :key =" category" >
2
+ <div class =" flex flex-row flex-wrap items-center " >
3
+ <div class =" flex flex-row mr-10px " v-for =" category in categoryList" :key =" category" >
4
4
<el-button
5
5
plain
6
6
round
@@ -37,17 +37,3 @@ const handleCategoryClick = async (category: string) => {
37
37
emits (' onCategoryClick' , category )
38
38
}
39
39
</script >
40
- <style scoped lang="scss">
41
- .category-list {
42
- display : flex ;
43
- flex-direction : row ;
44
- flex-wrap : wrap ;
45
- align-items : center ;
46
-
47
- .category {
48
- display : flex ;
49
- flex-direction : row ;
50
- margin-right : 10px ;
51
- }
52
- }
53
- </style >
Original file line number Diff line number Diff line change 1
1
<!-- header -->
2
2
<template >
3
- <el-header class =" chat-header " >
4
- <div class =" title " >
3
+ <el-header class =" flex flex-row justify-between items-center px-10px whitespace-nowrap text-ellipsis w-full " :style = " { backgroundColor: 'var(--el-bg-color-page)' } " >
4
+ <div class =" text-20px font-bold overflow-hidden max-w-220px " :style = " { color: 'var(--el-text-color-primary)' } " >
5
5
{{ title }}
6
6
</div >
7
- <div class =" title-right " >
7
+ <div class =" flex flex-row " >
8
8
<slot ></slot >
9
9
</div >
10
10
</el-header >
@@ -19,30 +19,3 @@ defineProps({
19
19
}
20
20
})
21
21
</script >
22
-
23
- <style scoped lang="scss">
24
- .chat-header {
25
- display : flex ;
26
- flex-direction : row ;
27
- justify-content : space-between ;
28
- align-items : center ;
29
- padding : 0 10px ;
30
- white-space : nowrap ;
31
- text-overflow : ellipsis ;
32
- background-color : var (--el-bg-color-page );
33
- width : 100% ;
34
-
35
- .title {
36
- font-size : 20px ;
37
- font-weight : bold ;
38
- overflow : hidden ;
39
- color : var (--el-text-color-primary );
40
- max-width : 220px ;
41
- }
42
-
43
- .title-right {
44
- display : flex ;
45
- flex-direction : row ;
46
- }
47
- }
48
- </style >
You can’t perform that action at this time.
0 commit comments