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

View File

@@ -1,5 +1,5 @@
<template>
<div @keydown.esc="closeOverlays" tabindex="-1">
<div @keydown.esc="closeOverlays" tabindex="-1" class="min-w-[320px]">
<!--UI components-->
<Alert />
<ToasterWrapper />

View File

@@ -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"

View File

@@ -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>

View File

@@ -45,7 +45,7 @@
<AppInputText title="Mail Username" :error="errors[0]">
<input
class="focus-border-theme input-dark"
v-model.lazy="mail.smtp.username"
v-model="mail.smtp.username"
placeholder="Type your mail username"
type="text"
:class="{ '!border-rose-600': errors[0] }"
@@ -82,8 +82,8 @@
</AppInputText>
</ValidationProvider>
<ValidationProvider v-if="shouldSetSMTPEmail" tag="div" mode="passive" name="Mail From Address" rules="required|email" v-slot="{ errors }">
<AppInputText title="Mail" :error="errors[0]" :is-last="true">
<ValidationProvider v-if="shouldSetSMTPEmail" tag="div" mode="passive" name="Mail From" rules="required|email" v-slot="{ errors }">
<AppInputText title="Mail From Address" :error="errors[0]" :is-last="true">
<input
class="focus-border-theme input-dark"
v-model.trim="mail.smtp.email"