File tree 2 files changed +44
-3
lines changed
2 files changed +44
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,16 @@ const copyToClipboard = async () => {
29
29
</script >
30
30
31
31
<template >
32
- <div class =" cli-snippet" @click =" copyToClipboard" >
32
+ <div
33
+ class =" cli-snippet"
34
+ @click =" copyToClipboard"
35
+ v-capture =" {
36
+ name: 'marketing.website.cli_snippet.copy.click',
37
+ properties: {
38
+ command: command,
39
+ },
40
+ }"
41
+ >
33
42
<div class =" command" >
34
43
<code class =" prefix" >{{ commandParts.prefix }}</code >
35
44
<code class =" command-text" >{{ commandParts.command }}</code >
@@ -48,7 +57,8 @@ const copyToClipboard = async () => {
48
57
display : flex ;
49
58
align-items : center ;
50
59
justify-content : space-between ;
51
- width : 470px ;
60
+ width : 100% ;
61
+ max-width : 470px ;
52
62
height : 44px ;
53
63
border-radius : 8px ;
54
64
padding : 9px 24px ;
@@ -57,6 +67,7 @@ const copyToClipboard = async () => {
57
67
box-shadow : 0px 0px 10px 2px #6644ff33 ;
58
68
transition : all 300ms ease-out ;
59
69
cursor : pointer ;
70
+ gap : 12px ;
60
71
& :hover {
61
72
box-shadow :
62
73
0px 0px 10px 2px #6644ff33 ,
@@ -74,6 +85,11 @@ const copyToClipboard = async () => {
74
85
font-weight : 500 ;
75
86
font-size : var (--font-size-md );
76
87
line-height : var (--line-height-sm );
88
+ overflow : hidden ;
89
+ text-overflow : ellipsis ;
90
+ white-space : nowrap ;
91
+ flex : 1 ;
92
+ min-width : 0 ;
77
93
}
78
94
.prefix {
79
95
color : #ff69b4 ;
@@ -88,10 +104,29 @@ const copyToClipboard = async () => {
88
104
font-weight : 500 ;
89
105
min-width : 50px ;
90
106
text-align : right ;
107
+ flex-shrink : 0 ;
91
108
.base-icon {
92
109
--base-icon-color : var (--white );
93
110
font-size : 20px ;
94
111
line-height : 20px ;
95
112
}
96
113
}
114
+
115
+ @media (max-width : 480px ) {
116
+ .cli-snippet {
117
+ padding : 9px 16px ;
118
+ height : 44px ;
119
+ gap : 8px ;
120
+ }
121
+ .command {
122
+ font-size : var (--font-size-sm );
123
+ }
124
+ .copy-status {
125
+ min-width : 40px ;
126
+ .base-icon {
127
+ font-size : 18px ;
128
+ line-height : 18px ;
129
+ }
130
+ }
131
+ }
97
132
</style >
Original file line number Diff line number Diff line change @@ -152,7 +152,8 @@ autoApply(`[data-block-id="${props.uuid}"]`, refresh);
152
152
}
153
153
154
154
.separator {
155
- width : 470px ;
155
+ width : 100% ;
156
+ max-width : 470px ;
156
157
margin-inline : auto ;
157
158
}
158
159
@@ -193,4 +194,9 @@ autoApply(`[data-block-id="${props.uuid}"]`, refresh);
193
194
margin-block-start : var (--space-3 );
194
195
}
195
196
}
197
+ @media (max-width : 800px ) {
198
+ .header {
199
+ padding-block-start : var (--nav-offset );
200
+ }
201
+ }
196
202
</style >
You can’t perform that action at this time.
0 commit comments