fixed issue with overflowing text in small screen for FilePreview

This commit is contained in:
Čarodej
2022-04-14 11:08:51 +02:00
parent cd5af37bfe
commit 50eb67ac79
6 changed files with 21 additions and 13 deletions
@@ -1,7 +1,7 @@
<template>
<div
v-if="isFullPreview"
class="fixed left-0 right-0 top-0 bottom-0 z-40 h-full w-full bg-white dark:bg-dark-background"
class="fixed left-0 right-0 top-0 bottom-0 z-40 h-full w-full bg-white dark:bg-dark-background min-w-[320px]"
ref="filePreview"
tabindex="-1"
@keydown.esc="closeFilePreview"
@@ -10,7 +10,7 @@
<div class="flex items-center">
<div class="mr-3 ml-0 flex items-center lg:mx-3">
<span
class="inline-block max-w-[230px] overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold"
class="inline-block max-w-[150px] xs:max-w-[230px] md:max-w-[290px] overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold"
>
{{ currentFile.data.attributes.name }}
</span>