File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
site/src/pages/TemplateVersionPage Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ const Files: FC<{
56
56
const tabValue = index . toString ( )
57
57
const extension = getExtension ( filename )
58
58
const icon = iconByExtension [ extension ]
59
+ const hasDiff = currentFiles [ filename ] !== previousFiles [ filename ]
59
60
60
61
return (
61
62
< button
@@ -70,6 +71,7 @@ const Files: FC<{
70
71
>
71
72
{ icon }
72
73
{ filename }
74
+ { hasDiff && < div className = { styles . tabDiff } /> }
73
75
</ button >
74
76
)
75
77
} ) }
@@ -154,6 +156,7 @@ const useStyles = makeStyles((theme) => ({
154
156
display : "flex" ,
155
157
alignItems : "baseline" ,
156
158
borderBottom : `1px solid ${ theme . palette . divider } ` ,
159
+ gap : 1 ,
157
160
} ,
158
161
159
162
tab : {
@@ -163,7 +166,7 @@ const useStyles = makeStyles((theme) => ({
163
166
display : "flex" ,
164
167
alignItems : "center" ,
165
168
height : theme . spacing ( 6 ) ,
166
- opacity : 0.75 ,
169
+ opacity : 0.85 ,
167
170
cursor : "pointer" ,
168
171
gap : theme . spacing ( 0.5 ) ,
169
172
position : "relative" ,
@@ -180,6 +183,7 @@ const useStyles = makeStyles((theme) => ({
180
183
181
184
tabActive : {
182
185
opacity : 1 ,
186
+ background : theme . palette . action . hover ,
183
187
184
188
"&:after" : {
185
189
content : '""' ,
@@ -193,6 +197,14 @@ const useStyles = makeStyles((theme) => ({
193
197
} ,
194
198
} ,
195
199
200
+ tabDiff : {
201
+ height : 6 ,
202
+ width : 6 ,
203
+ backgroundColor : theme . palette . warning . light ,
204
+ borderRadius : "100%" ,
205
+ marginLeft : theme . spacing ( 0.5 ) ,
206
+ } ,
207
+
196
208
codeWrapper : {
197
209
background : theme . palette . background . paperLight ,
198
210
} ,
You can’t perform that action at this time.
0 commit comments