File tree 2 files changed +24
-2
lines changed
site/src/components/AuditLogRow
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,9 @@ const useStyles = makeStyles((theme) => ({
86
86
flex : 1 ,
87
87
paddingTop : theme . spacing ( 2 ) ,
88
88
paddingBottom : theme . spacing ( 2.5 ) ,
89
+ paddingRight : theme . spacing ( 2 ) ,
89
90
lineHeight : "160%" ,
91
+ alignSelf : "stretch" ,
90
92
} ,
91
93
92
94
diffOld : {
@@ -101,7 +103,7 @@ const useStyles = makeStyles((theme) => ({
101
103
102
104
diffLine : {
103
105
opacity : 0.5 ,
104
- width : theme . spacing ( 8 ) ,
106
+ width : theme . spacing ( 6 ) ,
105
107
textAlign : "right" ,
106
108
flexShrink : 0 ,
107
109
} ,
@@ -110,6 +112,7 @@ const useStyles = makeStyles((theme) => ({
110
112
width : theme . spacing ( 4 ) ,
111
113
textAlign : "center" ,
112
114
fontSize : theme . typography . body1 . fontSize ,
115
+ flexShrink : 0 ,
113
116
} ,
114
117
115
118
diffNew : {
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ const Template: Story<AuditLogRowProps> = (args) => (
34
34
35
35
export const NoDiff = Template . bind ( { } )
36
36
NoDiff . args = {
37
- auditLog : MockAuditLog ,
37
+ auditLog : {
38
+ ...MockAuditLog ,
39
+ diff : { } ,
40
+ } ,
38
41
}
39
42
40
43
export const WithDiff = Template . bind ( { } )
@@ -43,6 +46,22 @@ WithDiff.args = {
43
46
defaultIsDiffOpen : true ,
44
47
}
45
48
49
+ export const WithLongDiffRow = Template . bind ( { } )
50
+ WithLongDiffRow . args = {
51
+ auditLog : {
52
+ ...MockAuditLog2 ,
53
+ diff : {
54
+ ...MockAuditLog2 . diff ,
55
+ icon : {
56
+ old : "https://www.docker.com/wp-content/uploads/2022/03/Moby-logo.png" ,
57
+ new : "https://www.docker.com/wp-content/uploads/2022/03/vertical-logo-monochromatic.png" ,
58
+ secret : false ,
59
+ } ,
60
+ } ,
61
+ } ,
62
+ defaultIsDiffOpen : true ,
63
+ }
64
+
46
65
export const WithWorkspaceBuild = Template . bind ( { } )
47
66
WithWorkspaceBuild . args = {
48
67
auditLog : MockAuditLogWithWorkspaceBuild ,
You can’t perform that action at this time.
0 commit comments