Add the metadata file path for easy copy+paste

This commit is contained in:
Kylian Schmidt
2025-07-29 11:18:03 +02:00
parent bcb083bbb9
commit fc4928fef1
5 changed files with 243 additions and 8 deletions
+133
View File
@@ -60,6 +60,129 @@
display: none; /* Hidden by default */
}
/* Metadata Header with File Path */
.metadata-header {
padding: 1rem;
background: var(--card-bg);
border-bottom: 1px solid var(--border-color);
}
.metadata-file-info {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.file-path-label {
font-weight: 600;
color: var(--text-color);
white-space: nowrap;
font-size: 0.9rem;
}
.file-path {
background: var(--bg-color);
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 0.4rem 0.6rem;
font-family: 'Courier New', monospace;
font-size: 0.8rem;
color: var(--link-color);
flex: 1;
min-width: 200px;
word-break: break-all;
user-select: all;
}
.copy-path-btn {
background: var(--link-color);
color: white;
border: none;
border-radius: 4px;
padding: 0.4rem 0.8rem;
cursor: pointer;
font-size: 0.8rem;
transition: all 0.2s ease;
white-space: nowrap;
font-weight: 500;
}
.copy-path-btn:hover {
background: var(--link-hover);
transform: translateY(-1px);
}
.copy-path-btn:active {
transform: scale(0.95);
}
.copy-path-btn.copied {
background: #4CAF50;
transform: scale(1.05);
}
/* Tip Icon with Hover Tooltip */
.tip-icon {
cursor: help;
font-size: 1.2rem;
position: relative;
display: inline-block;
margin-left: 0.25rem;
opacity: 0.8;
transition: opacity 0.2s ease;
}
.tip-icon:hover {
opacity: 1;
}
/* Custom tooltip for tip icon */
.tip-icon::after {
content: attr(title);
position: absolute;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
background: #333;
color: white;
padding: 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
white-space: normal;
width: 280px;
text-align: left;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
line-height: 1.4;
font-weight: normal;
font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}
/* Tooltip arrow */
.tip-icon::before {
content: '';
position: absolute;
bottom: 115%;
left: 50%;
transform: translateX(-50%);
border: 6px solid transparent;
border-top-color: #333;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 1001;
}
.tip-icon:hover::after,
.tip-icon:hover::before {
opacity: 1;
visibility: visible;
}
/* Grid Layout */
.metadata-grid {
padding: 1rem;
@@ -160,4 +283,14 @@
.metadata-key {
white-space: normal;
}
.metadata-file-info {
flex-direction: column;
align-items: stretch;
gap: 0.5rem;
}
.file-path {
min-width: auto;
}
}