File tree Expand file tree Collapse file tree 2 files changed +44
-3
lines changed
Expand file tree Collapse file tree 2 files changed +44
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,16 @@ const copyToClipboard = async () => {
2929 </script >
3030
3131<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+ >
3342 <div class =" command" >
3443 <code class =" prefix" >{{ commandParts.prefix }}</code >
3544 <code class =" command-text" >{{ commandParts.command }}</code >
@@ -48,7 +57,8 @@ const copyToClipboard = async () => {
4857 display : flex ;
4958 align-items : center ;
5059 justify-content : space-between ;
51- width : 470px ;
60+ width : 100% ;
61+ max-width : 470px ;
5262 height : 44px ;
5363 border-radius : 8px ;
5464 padding : 9px 24px ;
@@ -57,6 +67,7 @@ const copyToClipboard = async () => {
5767 box-shadow : 0px 0px 10px 2px #6644ff33 ;
5868 transition : all 300ms ease-out ;
5969 cursor : pointer ;
70+ gap : 12px ;
6071 & :hover {
6172 box-shadow :
6273 0px 0px 10px 2px #6644ff33 ,
@@ -74,6 +85,11 @@ const copyToClipboard = async () => {
7485 font-weight : 500 ;
7586 font-size : var (--font-size-md );
7687 line-height : var (--line-height-sm );
88+ overflow : hidden ;
89+ text-overflow : ellipsis ;
90+ white-space : nowrap ;
91+ flex : 1 ;
92+ min-width : 0 ;
7793}
7894.prefix {
7995 color : #ff69b4 ;
@@ -88,10 +104,29 @@ const copyToClipboard = async () => {
88104 font-weight : 500 ;
89105 min-width : 50px ;
90106 text-align : right ;
107+ flex-shrink : 0 ;
91108 .base-icon {
92109 --base-icon-color : var (--white );
93110 font-size : 20px ;
94111 line-height : 20px ;
95112 }
96113}
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+ }
97132 </style >
Original file line number Diff line number Diff line change @@ -152,7 +152,8 @@ autoApply(`[data-block-id="${props.uuid}"]`, refresh);
152152}
153153
154154.separator {
155- width : 470px ;
155+ width : 100% ;
156+ max-width : 470px ;
156157 margin-inline : auto ;
157158}
158159
@@ -193,4 +194,9 @@ autoApply(`[data-block-id="${props.uuid}"]`, refresh);
193194 margin-block-start : var (--space-3 );
194195 }
195196}
197+ @media (max-width : 800px ) {
198+ .header {
199+ padding-block-start : var (--nav-offset );
200+ }
201+ }
196202 </style >
You can’t perform that action at this time.
0 commit comments