|
1 | 1 | <template>
|
2 | 2 | <div v-on-click-outside="close" class="upload relative">
|
3 | 3 | <div>
|
4 |
| - <default-button @click.stop="pick" type="button" class="upload__button flex align-middle gap-2" size="sm" :class="{'with-menu': hasLaruploadTrait}"> |
5 |
| - <Icon type="upload" width="20" height="20" /> |
| 4 | + <Button @click.stop="pick" type="button" class="upload__button flex align-middle gap-2" size="small" :class="{'with-menu': hasLaruploadTrait}"> |
| 5 | + <Icon name="arrow-up-tray" type="mini" class="mr-1" /> |
6 | 6 | <span>{{ __('Upload') }}</span>
|
7 | 7 |
|
8 | 8 | <div v-if="hasLaruploadTrait" @click.stop="toggle" class="upload__button--menu">
|
9 |
| - <Icon type="chevron-down" class="-mr-1" width="18" height="18" /> |
| 9 | + <Icon name="chevron-down" type="mini" class="-mr-1" /> |
10 | 10 | </div>
|
11 |
| - </default-button> |
| 11 | + </Button> |
12 | 12 |
|
13 | 13 |
|
14 | 14 | <input
|
|
61 | 61 | </div>
|
62 | 62 |
|
63 | 63 | <template v-if="hasLaruploadTrait" #footer>
|
64 |
| - <default-button |
| 64 | + <Button |
65 | 65 | @click.stop="handleUploadWithCover"
|
66 | 66 | type="button"
|
67 | 67 | class="upload__button flex align-middle gap-2"
|
68 |
| - size="sm" |
69 | 68 | :class="{'opacity-50 disabled:cursor-not-allowed': uploadWithCoverIsDisabled}"
|
70 | 69 | :disabled="uploadWithCoverIsDisabled"
|
71 | 70 | >
|
72 | 71 | <span>{{ __('Upload') }}</span>
|
73 |
| - </default-button> |
| 72 | + </Button> |
74 | 73 | </template>
|
75 | 74 | </modal>
|
76 | 75 | </template>
|
|
79 | 78 | import {ref, computed, watch} from "vue"
|
80 | 79 | import Modal from "../modal.vue"
|
81 | 80 | import {useLocalization} from 'laravel-nova'
|
| 81 | +import {Button, Icon} from 'laravel-nova-ui' |
82 | 82 | import MediaBrowserUploadProgress from "./MediaBrowserUploadProgress.vue"
|
83 | 83 | import MediaBrowserUploadWithCover from "./MediaBrowserUploadWithCover.vue"
|
84 | 84 | import {hasLaruploadTraitProp, typeProp} from "../../utils/picker-props"
|
@@ -381,9 +381,12 @@ function calculateItemUploadedPercent(progressEvent, index) {
|
381 | 381 | max-width: 600px;
|
382 | 382 | height: 400px !important;
|
383 | 383 | top: calc(50% - 200px) !important;
|
384 |
| - left: calc(50% - 300px) !important; |
385 | 384 | overflow: hidden;
|
386 | 385 |
|
| 386 | + @media (min-width: 801px) { |
| 387 | + left: calc(50% - 300px) !important; |
| 388 | + } |
| 389 | +
|
387 | 390 | &.large {
|
388 | 391 | height: 500px !important;
|
389 | 392 | top: calc(50% - 250px) !important;
|
|
0 commit comments