Rml workorder/v2 need improvements

This commit is contained in:
Luca Haid
2025-08-05 07:05:33 +00:00
parent cccc00f434
commit 918ca3aafa
16 changed files with 1534 additions and 613 deletions
@@ -1,3 +1,4 @@
/* tt-file-gallery.css */
.tt-file-gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
@@ -13,11 +14,18 @@
cursor: pointer;
}
.tt-file-gallery-thumbnail {
.tt-file-gallery-thumbnail-wrapper {
position: relative;
width: 100%;
height: 100px;
object-fit: cover;
border-radius: 0.25rem;
overflow: hidden; /* Hide the scaled part of the image */
}
.tt-file-gallery-thumbnail {
width: 100%;
height: 100%;
object-fit: cover;
border: 1px solid #dee2e6;
transition: transform 0.2s;
}
@@ -30,8 +38,8 @@
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 40px; /* Adjust to not cover filename */
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
color: white;
display: flex;
@@ -43,13 +51,13 @@
border-radius: 0.25rem;
}
.tt-file-gallery-item:hover .tt-file-gallery-overlay {
.tt-file-gallery-item:hover .tt-file-gallery-thumbnail-wrapper .tt-file-gallery-overlay {
opacity: 1;
}
.tt-file-gallery-icon-container {
width: 100%;
height: 100px;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
@@ -58,18 +66,40 @@
background-color: #f8f9fa;
text-decoration: none;
color: inherit;
transition: transform 0.2s;
}
.tt-file-gallery-item:hover .tt-file-gallery-icon-container {
transform: scale(1.05);
}
.tt-file-gallery-filename {
font-size: 0.8rem;
margin-top: 0.5rem;
width: 100%;
padding: 0 4px;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0 0.25rem;
line-height: 1.2;
}
.tt-file-gallery-filename > span {
flex: 1 1 auto;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0 4px;
}
.tt-file-gallery-filename > i {
flex-shrink: 0;
}
/* --- Fullscreen Viewer Styles --- */
.tt-fullscreen-overlay {