File tree Expand file tree Collapse file tree 2 files changed +32
-19
lines changed Expand file tree Collapse file tree 2 files changed +32
-19
lines changed Original file line number Diff line number Diff line change 4
4
-->
5
5
<template >
6
6
<div class =" agency-action" >
7
- <NcChip type =" primary"
8
- :no-close =" true"
9
- :text =" action.name.replace(/_/g, ' ')" >
10
- <template #icon >
11
- <ToolsIcon :size =" 16" />
12
- </template >
13
- </NcChip >
14
- <NcChip v-for =" (argValue, argName) in action.args"
7
+ <div class =" action-title" >
8
+ <ToolsIcon :size =" 20" />
9
+ <strong >
10
+ {{ action.name.replace(/_/g, ' ') }}
11
+ </strong >
12
+ </div >
13
+ <span v-for =" (argValue, argName) in action.args"
15
14
:key =" argName + argValue"
16
15
class =" param"
17
- :no-close = " true "
18
- :text = " getParamText(argName, argValue)"
19
- :title = " getParamText(argName, argValue) " / >
16
+ :title = " getParamText(argName, argValue) " >
17
+ {{ getParamText(argName, argValue) }}
18
+ </ span >
20
19
</div >
21
20
</template >
22
21
23
22
<script >
24
23
import ToolsIcon from ' vue-material-design-icons/Tools.vue'
25
24
26
- import NcChip from ' @nextcloud/vue/dist/Components/NcChip.js'
27
-
28
25
export default {
29
26
name: ' AgencyAction' ,
30
27
31
28
components: {
32
- NcChip,
33
29
ToolsIcon,
34
30
},
35
31
@@ -51,12 +47,24 @@ export default {
51
47
<style lang="scss" scoped>
52
48
.agency-action {
53
49
display : flex ;
50
+ flex-direction : column ;
54
51
align-items : start ;
55
52
gap : 4px ;
56
- flex-wrap : wrap ;
53
+
54
+ border-radius : var (--border-radius-large );
55
+ background-color : var (--color-primary-element-light-hover );
56
+ padding : 8px ;
57
+
58
+ .action-title {
59
+ display : flex ;
60
+ align-items : center ;
61
+ }
57
62
58
63
.param {
59
- max-width : 300px ;
64
+ white-space : nowrap ;
65
+ text-overflow : ellipsis ;
66
+ width : 100% ;
67
+ overflow : hidden ;
60
68
}
61
69
}
62
70
</style >
Original file line number Diff line number Diff line change 6
6
<div class =" agency-actions" >
7
7
<AgencyAction v-for =" action in actions"
8
8
:key =" action.id"
9
- :action =" action" />
9
+ :action =" action"
10
+ class =" action" />
10
11
</div >
11
12
</template >
12
13
@@ -32,8 +33,12 @@ export default {
32
33
<style lang="scss" scoped>
33
34
.agency-actions {
34
35
display : flex ;
35
- flex-direction : column ;
36
+ flex-wrap : wrap ;
36
37
align-items : start ;
37
- gap : 4px ;
38
+ gap : 8px ;
39
+
40
+ .action {
41
+ max-width : 300px ;
42
+ }
38
43
}
39
44
</style >
You can’t perform that action at this time.
0 commit comments