Skip to content

Commit 947dabb

Browse files
committed
audio and video name
1 parent a1e240d commit 947dabb

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

.idea/workspace.xml

Lines changed: 12 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/popup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

stylesheets/main.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)