File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed
tensorboard/plugins/image/tf_image_dashboard Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 69
69
</ div >
70
70
</ template >
71
71
</ tf-card-heading >
72
- < div id ="main-image-container "> </ div >
72
+
73
+ < button aria-label ="Toggle actual size "
74
+ id ="main-image-container "
75
+ on-tap ="_handleTap "> </ button >
73
76
74
77
< style >
78
+ /** Make button a div. */
79
+ button {
80
+ width : 100% ;
81
+ display : block;
82
+ background : none;
83
+ border : 0 ;
84
+ padding : 0 ;
85
+ }
86
+
87
+ /** Firefox: Get rid of dotted line inside button. */
88
+ button ::-moz-focus-inner {
89
+ border : 0 ;
90
+ padding : 0 ;
91
+ }
92
+
93
+ /** Firefox: Simulate Chrome's outer glow on button when focused. */
94
+ button : -moz-focusring {
95
+ outline : none;
96
+ box-shadow : 0px 0px 1px 2px Highlight;
97
+ }
98
+
75
99
: host {
76
100
dis play: block;
77
101
width: 350px;
89
113
90
114
: host [actual-size ] # main-image-container {
91
115
max-height : none;
116
+ width : auto;
92
117
}
93
118
94
119
: host [actual-size ] # main-image-container img {
127
152
}
128
153
129
154
# main-image-container img {
155
+ cursor : pointer;
156
+ display : block;
130
157
image-rendering : -moz-crisp-edges;
131
158
image-rendering : pixelated;
132
- display : block;
133
159
width : 100% ;
134
160
height : auto;
135
161
}
343
369
this . set ( "_isImageLoading" , true ) ;
344
370
img . src = steps [ stepIndex ] . url ;
345
371
} ,
372
+ _handleTap ( e ) {
373
+ this . set ( 'actualSize' , ! this . actualSize ) ;
374
+ } ,
346
375
} ) ;
347
376
</ script >
348
377
</ dom-module >
You can’t perform that action at this time.
0 commit comments