Skip to content

Commit

Permalink
fix(frontend): preview / file name width
Browse files Browse the repository at this point in the history
  • Loading branch information
MiracleHorizon committed Apr 10, 2024
1 parent 5b534d2 commit b143eaa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/src/widgets/Preview/Preview.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.root {
position: relative;
width: calc(100% - var(--settings-panel-width));
width: calc(100dvw - var(--settings-panel-width));
}

.root:has(> .driver-active-element) {
Expand All @@ -17,13 +17,13 @@

@media screen and (min-width: 2400px) {
.root {
width: calc(100% - var(--settings-panel-width-2400));
width: calc(100dvw - var(--settings-panel-width-2400));
}
}

@media screen and (max-width: 1200px) {
.root {
width: calc(100% - var(--settings-panel-width-1200));
width: calc(100dvw - var(--settings-panel-width-1200));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const UploadedFileCard: FC<Props> = ({ file }) => {
</Flex>
</MediaQuery>

<Flex direction='column' gap='1' mr='auto' className={styles.content}>
<Flex width='100%' direction='column' gap='1' mr='auto' className={styles.content}>
<Text title={file.name} truncate className={styles.fileName}>
{file.name}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
transform: translate3d(-50%, -50%, 0);
}

@media screen and (max-width: 767px) {
.root {
height: 30dvh;
}
}

@media screen and (max-width: 519px) {
.fullscreenIcon {
width: 34px;
Expand Down

0 comments on commit b143eaa

Please sign in to comment.