File tree Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Expand file tree Collapse file tree 3 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ function displayMedia() {
136136 cell = `<td style="width: ${ columnWidth } ;"></td>` ;
137137 } else {
138138 const { src, type} = mediaToDisplay [ index ] ;
139-
139+ const name = getNameFromUrl ( src ) ;
140140 cell = `<td style="width: ${ columnWidth } ;">
141141 <button type="button" title="Download" class="download_image_button"
142142 data-img-src="${ src } "
@@ -149,12 +149,14 @@ function displayMedia() {
149149 cell += `<img class="thumbnail"
150150 data-item-index="${ index } "
151151 src="/images/video.png"/>
152+ <p title="${ name } ">${ name } </p>
152153 ` ;
153154 break ;
154155 case 'audio' :
155156 cell += `<img class="thumbnail"
156157 data-item-index="${ index } "
157158 src="/images/audio.png"/>
159+ <p title="${ name } ">${ name } </p>
158160 ` ;
159161 }
160162
Original file line number Diff line number Diff line change @@ -72,6 +72,17 @@ button:disabled {
7272 position : relative;
7373}
7474
75+ .grid td p {
76+ position : absolute;
77+ padding : 10px 5px ;
78+ bottom : 0 ;
79+ font-size : 16px ;
80+ text-overflow : ellipsis;
81+ white-space : nowrap;
82+ width : 100% ;
83+ overflow : hidden;
84+ }
85+
7586# top-container {
7687 position : fixed;
7788 top : 0 ;
You can’t perform that action at this time.
0 commit comments