Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions src/web-ui/src/tools/editor/components/ImageViewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
border-bottom: 1px solid $border-base;
min-height: 32px;
flex-shrink: 0;
container-type: inline-size;
}

&__info {
Expand All @@ -43,6 +44,7 @@
font-size: var(--font-size-sm);
flex: 1;
min-width: 0;
overflow: hidden;
}

&__filename {
Expand All @@ -51,21 +53,41 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
flex-shrink: 1;
}

&__dimensions {
font-size: var(--font-size-xs);
color: var(--color-text-secondary);
white-space: nowrap;
flex-shrink: 0;
}

&__dimensions,
&__filesize {
font-size: var(--font-size-xs);
color: var(--color-text-secondary);
white-space: nowrap;
flex-shrink: 0;
}

@container (max-width: 250px) {
.bitfun-image-viewer__dimensions {
display: none;
}
}

@container (max-width: 150px) {
.bitfun-image-viewer__filename {
display: none;
}
}

&__controls {
display: flex;
align-items: center;
gap: $size-gap-2;
flex-shrink: 0;
margin-left: auto;
}

// Button Styles
Expand Down
2 changes: 2 additions & 0 deletions src/web-ui/src/tools/editor/components/ImageViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export const ImageViewer: React.FC<ImageViewerProps> = ({
<button
className="bitfun-image-viewer__btn"
onClick={handleDownload}
style={{display: 'none'}}
>
<Download size={14} />
</button>
Expand All @@ -213,6 +214,7 @@ export const ImageViewer: React.FC<ImageViewerProps> = ({
<button
className="bitfun-image-viewer__btn"
onClick={handleToggleFullscreen}
style={{display: 'none'}}
>
<Maximize2 size={14} />
</button>
Expand Down
Loading