Files
MilkyShots/MilkStream.Client/Components/Shared/ImagePreview.razor.css
REDCODE 2f7cd3d7da fix: resolve UI issues #61, #62, #66
- #61: wrap standalone fallback div in cosplayer-card-img-wrap on
  Cosplayers page so placeholder icon gets proper sizing/positioning
- #62: add mobile breakpoint rule for modal-overlay so edit form
  appears centered on small screens instead of at page bottom
- #66: make cosplayer name in ImagePreview, AlbumDetail, AlbumCard,
  and Home asset tiles a clickable link to /cosplayer/{id}
- add CosplayerIds to AssetPreviewDto and populate via mapper for
  linked navigation from the home page image previewer
2026-07-09 22:36:07 +02:00

179 lines
3.1 KiB
CSS

.preview-overlay {
position: fixed;
inset: 0;
z-index: 9999;
background: rgba(0, 0, 0, 0.92);
display: flex;
align-items: center;
justify-content: center;
}
.preview-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
display: flex;
align-items: center;
justify-content: center;
}
.preview-img {
max-width: 90vw;
max-height: 90vh;
object-fit: contain;
border-radius: 4px;
}
.preview-close {
position: absolute;
top: -40px;
right: 0;
background: none;
border: none;
color: #fff;
font-size: 2rem;
cursor: pointer;
line-height: 1;
padding: 4px 8px;
z-index: 1;
}
.preview-close:hover {
color: #ccc;
}
.preview-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.1);
border: none;
color: #fff;
font-size: 3rem;
cursor: pointer;
padding: 0 12px;
line-height: 1;
border-radius: 4px;
z-index: 1;
transition: background 0.2s;
}
.preview-nav:hover {
background: rgba(255, 255, 255, 0.25);
}
.preview-prev {
left: 8px;
}
.preview-next {
right: 8px;
}
.preview-image-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.preview-info {
width: 100%;
padding: 10px 16px;
background: rgba(0, 0, 0, 0.65);
border-radius: 0 0 4px 4px;
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-wrap: wrap;
gap: 4px;
}
@media (max-width: 576px) {
.preview-info {
flex-direction: column;
align-items: flex-start;
gap: 6px;
padding: 8px 12px;
}
}
.preview-info-text {
min-width: 0;
}
::deep .preview-info-cosplayer {
display: block;
color: #fff;
font-size: 0.95rem;
font-weight: 600;
line-height: 1.4;
text-decoration: none;
}
::deep .preview-info-cosplayer:hover {
color: #fff;
text-decoration: underline;
}
::deep .preview-info-album {
display: block;
color: rgba(255, 255, 255, 0.7);
font-size: 0.8rem;
line-height: 1.4;
text-decoration: none;
}
::deep .preview-info-album:hover {
color: #fff;
text-decoration: underline;
}
.preview-info-right {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
margin-left: 16px;
}
@media (max-width: 576px) {
.preview-info-right {
margin-left: 0;
width: 100%;
justify-content: space-between;
}
}
.preview-info-filename {
color: rgba(255, 255, 255, 0.45);
font-size: 0.7rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}
.preview-info-actions {
display: flex;
gap: 6px;
flex-shrink: 0;
}
.preview-action-btn {
color: rgba(255, 255, 255, 0.6);
font-size: 1.3rem;
padding: 4px;
line-height: 1;
text-decoration: none;
transition: color 0.15s;
display: flex;
align-items: center;
background: none;
border: none;
cursor: pointer;
}
.preview-action-btn:hover {
color: #fff;
}