Fix four bugs and add logo/branding polish
- docker-compose: add register-user service (profiles: [tools]) with YAML anchor to avoid env duplication - src/index.ts: show localhost instead of 0.0.0.0 in startup message - file-view: render <img> inline for image/* MIME types - file-list: add Copy link button per row (requires baseUrl param) - layout: add hideLogo option; file view page hides the logo - style.css: remove uppercase from .logo (Nanodrop not NANODROP), add button.copy-link styles, add .file-view img styles, widen last td Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,9 @@ export function fileViewPage(file: FileRow): string {
|
||||
</div>`;
|
||||
|
||||
let media = '';
|
||||
if (file.mime_type.startsWith('video/')) {
|
||||
if (file.mime_type.startsWith('image/')) {
|
||||
media = `<img src="${rawUrl}" alt="${safeName}">`;
|
||||
} else if (file.mime_type.startsWith('video/')) {
|
||||
media = `<video controls src="${rawUrl}" preload="metadata"></video>`;
|
||||
} else if (file.mime_type.startsWith('audio/')) {
|
||||
media = `<audio controls src="${rawUrl}" preload="metadata"></audio>`;
|
||||
@@ -23,5 +25,5 @@ export function fileViewPage(file: FileRow): string {
|
||||
${media}
|
||||
${actions}
|
||||
</div>
|
||||
`);
|
||||
`, { hideLogo: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user