Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pre block #115

Merged
merged 2 commits into from
Mar 15, 2024
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
7 changes: 4 additions & 3 deletions natster-io/src/components/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
leave-to="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
>
<DialogPanel
class="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"
class="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all max-w-screen-xl sm:my-8 sm:w-full sm:max-w-screen-lg sm:p-6"
>
<div class="absolute right-0 top-0 hidden pr-4 pt-4 sm:block">
<button
Expand Down Expand Up @@ -98,12 +98,13 @@
class="max-h-96"
v-show="!loading"
/>
<p
<pre
v-else-if="blob != null && mimeType && mimeType.toLowerCase() === 'text/plain'"
v-show="!loading"
class="whitespace-pre-wrap"
>
{{ blobData }}
</p>
</pre>
<p v-else v-show="!loading">Error displaying media</p>
</div>
<div class="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
Expand Down
4 changes: 2 additions & 2 deletions natster-io/src/views/AuthView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Notification />
<File />
<Notification class="z-50" />
<File class="z-50" />
<TransitionRoot as="template" :show="sidebarOpen">
<Dialog as="div" class="relative z-50 lg:hidden" @close="sidebarOpen = false">
<TransitionChild
Expand Down
Loading