File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 110
110
): EditorState => {
111
111
const extensions = [
112
112
keymap .of ([... standardKeymap , ... historyKeymap ]),
113
- TEMPORAL_THEME (isDark ),
113
+ TEMPORAL_THEME ({ isDark , copyable } ),
114
114
syntaxHighlighting (TEMPORAL_SYNTAX , { fallback: true }),
115
115
indentUnit .of (' ' ),
116
116
closeBrackets (),
202
202
<CopyButton
203
203
{copyIconTitle }
204
204
{copySuccessIconTitle }
205
- class =" absolute right-3 top-1 text-secondary"
205
+ class =" absolute right-1 top-1 text-secondary"
206
206
on:click ={handleCopy }
207
207
copied ={$copied }
208
208
/>
Original file line number Diff line number Diff line change 149
149
>
150
150
<Icon
151
151
name =" flag"
152
- class =" text-indigo-600/80 "
152
+ class =" text-brand "
153
153
width ={32 }
154
154
height ={32 }
155
155
/>{translate (' workflows.current-details' )}
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ import colors from 'tailwindcss/colors';
5
5
6
6
import { css } from '$lib/theme/utilities' ;
7
7
8
- export const TEMPORAL_THEME = ( isDark ) =>
8
+ export const TEMPORAL_THEME = ( {
9
+ isDark,
10
+ copyable,
11
+ } : {
12
+ isDark : boolean ;
13
+ copyable : boolean ;
14
+ } ) =>
9
15
EditorView . theme (
10
16
{
11
17
'&' : {
@@ -22,6 +28,7 @@ export const TEMPORAL_THEME = (isDark) =>
22
28
'.cm-content' : {
23
29
caretColor : css ( '--color-text-primary' ) ,
24
30
fontSize : '0.875em' ,
31
+ ...( copyable && { marginRight : '1.75rem' } ) ,
25
32
} ,
26
33
'.cm-editor&.cm-focused' : {
27
34
outline : `3px solid ${ colors . indigo [ '600' ] } ` ,
You can’t perform that action at this time.
0 commit comments