-
-
Notifications
You must be signed in to change notification settings - Fork 100
Add Audio Resource Views #585
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
base: 3.x
Are you sure you want to change the base?
Add Audio Resource Views #585
Conversation
@@ -28,6 +28,8 @@ class="overflow-hidden h-full w-auto border border-gray-300 rounded dark:border- | |||
/> | |||
@elseif (str($file['type'])->contains('video')) | |||
<video controls src="{{ $file['url'] }}"></video> | |||
@elseif (str($record->type)->contains('audio')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be $file['type'] instead of $record->type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it
'relative block w-full overflow-hidden border border-gray-300 rounded-lg shadow-sm dark:bg-gray-800 dark:border-gray-700 dark:text-white flex justify-center checkered' => ! str($item['type'])->contains('audio'), | ||
'relative block w-full border p-4 border-gray-300 rounded-lg shadow-sm dark:bg-gray-800 dark:border-gray-700 dark:text-white h-32 checkered' =>str($item['type'])->contains('audio'), | ||
'h-64' => ! str($item['type'])->contains('video') && !str($item['type'])->contains('audio'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pull duplicated classes out so as to not repeat them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite what I meant. :)
'relative block w-full border border-gray-300 rounded-lg shadow-sm checkered dark:bg-gray-800 dark:border-gray-700 dark:text-white',
'flex justify-center overflow-hidden' => ! str($item['type'])->contains('audio'),
'h-32 p-4' => str($item['type'])->contains('audio'),
The current views are missing audio representation to match the standard file uploader.