You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

571 lines
23 KiB

  1. <template lang='pug'>
  2. v-card.editor-modal-media.animated.fadeInLeft(flat, tile)
  3. v-container.pa-3(grid-list-lg, fluid)
  4. v-layout(row, wrap)
  5. v-flex(xs12, lg9)
  6. v-card.radius-7.animated.fadeInLeft.wait-p1s(:light='!$vuetify.dark', :dark='$vuetify.dark')
  7. v-card-text
  8. .d-flex
  9. v-toolbar.radius-7(:color='$vuetify.dark ? `teal` : `teal lighten-5`', dense, flat, height='44')
  10. .body-2(:class='$vuetify.dark ? `white--text` : `teal--text`') {{$t('editor:assets.title')}}
  11. v-spacer
  12. v-btn(flat, icon, @click='refresh')
  13. v-icon(:color='$vuetify.dark ? `white` : `teal`') refresh
  14. v-dialog(v-model='newFolderDialog', max-width='550')
  15. v-btn.ml-3.my-0.mr-0.radius-7(outline, large, color='teal', :icon='$vuetify.breakpoint.xsOnly', slot='activator')
  16. v-icon(:left='$vuetify.breakpoint.mdAndUp') add
  17. span.hidden-sm-and-down(:class='$vuetify.dark ? `teal--text text--lighten-3` : ``') {{$t('editor:assets.newFolder')}}
  18. v-card.wiki-form
  19. .dialog-header.is-short {{$t('editor:assets.newFolder')}}
  20. v-card-text
  21. v-text-field.md2(
  22. outline
  23. background-color='grey lighten-3'
  24. prepend-icon='folder'
  25. v-model='newFolderName'
  26. :label='$t(`editor:assets.folderName`)'
  27. counter='255'
  28. @keyup.enter='createFolder'
  29. @keyup.esc='newFolderDialog = false'
  30. ref='folderNameIpt'
  31. )
  32. i18next.caption.grey--text.text--darken-1.pl-5(path='editor:assets.folderNameNamingRules', tag='div')
  33. a(place='namingRules', href='https://docs-beta.requarks.io/guide/assets#naming-restrictions', target='_blank') {{$t('editor:assets.folderNameNamingRulesLink')}}
  34. v-card-chin
  35. v-spacer
  36. v-btn(flat, @click='newFolderDialog = false') {{$t('common:actions.cancel')}}
  37. v-btn(color='primary', @click='createFolder', :disabled='!isFolderNameValid', :loading='newFolderLoading') {{$t('common:actions.create')}}
  38. v-toolbar(flat, dense, :color='$vuetify.dark ? `grey darken-3` : `white`')
  39. template(v-if='folderTree.length > 0')
  40. .body-2
  41. span.mr-1 /
  42. template(v-for='folder of folderTree')
  43. span(:key='folder.id') {{folder.name}}
  44. span.mx-1 /
  45. .body-2(v-else) / #[em root]
  46. template(v-if='folders.length > 0 || currentFolderId > 0')
  47. v-btn.is-icon.mx-1(:color='$vuetify.dark ? `grey lighten-1` : `grey darken-2`', outline, :dark='currentFolderId > 0', @click='upFolder()', :disabled='currentFolderId === 0')
  48. v-icon keyboard_arrow_up
  49. v-btn.btn-normalcase.mx-1(v-for='folder of folders', :key='folder.id', depressed, color='grey darken-2', dark, @click='downFolder(folder)')
  50. v-icon(left) folder
  51. span {{ folder.name }}
  52. v-divider.mt-2
  53. v-data-table(
  54. :items='assets'
  55. :headers='headers'
  56. :pagination.sync='pagination'
  57. :rows-per-page-items='[15]'
  58. :loading='loading'
  59. must-sort,
  60. hide-actions
  61. )
  62. template(slot='items', slot-scope='props')
  63. tr.is-clickable(
  64. @click.left='currentFileId = props.item.id'
  65. @click.right.prevent=''
  66. :class='currentFileId === props.item.id ? ($vuetify.dark ? `grey darken-3-d5` : `teal lighten-5`) : ``'
  67. )
  68. td.text-xs-right(v-if='$vuetify.breakpoint.smAndUp') {{ props.item.id }}
  69. td
  70. .body-2(:class='currentFileId === props.item.id ? `teal--text` : ``') {{ props.item.filename }}
  71. .caption.grey--text {{ props.item.description }}
  72. td.text-xs-center(v-if='$vuetify.breakpoint.lgAndUp')
  73. v-chip.ma-0(small, :color='$vuetify.dark ? `grey darken-4` : `grey lighten-4`')
  74. .caption {{props.item.ext.toUpperCase().substring(1)}}
  75. td(v-if='$vuetify.breakpoint.mdAndUp') {{ props.item.fileSize | prettyBytes }}
  76. td(v-if='$vuetify.breakpoint.mdAndUp') {{ props.item.createdAt | moment('from') }}
  77. td(v-if='$vuetify.breakpoint.smAndUp')
  78. v-menu(offset-x)
  79. v-btn.ma-0(icon, slot='activator')
  80. v-icon(color='grey darken-2') more_horiz
  81. v-list.py-0(style='border-top: 5px solid #444;')
  82. v-list-tile(@click='', disabled)
  83. v-list-tile-avatar
  84. v-icon(color='teal') short_text
  85. v-list-tile-content {{$t('common:actions.properties')}}
  86. v-divider
  87. template(v-if='props.item.kind === `IMAGE`')
  88. v-list-tile(@click='previewDialog = true', disabled)
  89. v-list-tile-avatar
  90. v-icon(color='green') image_search
  91. v-list-tile-content {{$t('common:actions.preview')}}
  92. v-divider
  93. v-list-tile(@click='', disabled)
  94. v-list-tile-avatar
  95. v-icon(color='indigo') crop_rotate
  96. v-list-tile-content {{$t('common:actions.edit')}}
  97. v-divider
  98. v-list-tile(@click='', disabled)
  99. v-list-tile-avatar
  100. v-icon(color='purple') offline_bolt
  101. v-list-tile-content {{$t('common:actions.optimize')}}
  102. v-divider
  103. v-list-tile(@click='openRenameDialog')
  104. v-list-tile-avatar
  105. v-icon(color='orange') keyboard
  106. v-list-tile-content {{$t('common:actions.rename')}}
  107. v-divider
  108. v-list-tile(@click='', disabled)
  109. v-list-tile-avatar
  110. v-icon(color='blue') forward
  111. v-list-tile-content {{$t('common:actions.move')}}
  112. v-divider
  113. v-list-tile(@click='deleteDialog = true')
  114. v-list-tile-avatar
  115. v-icon(color='red') delete
  116. v-list-tile-content {{$t('common:actions.delete')}}
  117. template(slot='no-data')
  118. v-alert.mt-3.radius-7(icon='folder_open', :value='true', outline, color='teal') {{$t('editor:assets.folderEmpty')}}
  119. .text-xs-center.py-2(v-if='this.pageTotal > 1')
  120. v-pagination(v-model='pagination.page', :length='pageTotal')
  121. .d-flex.mt-3
  122. v-toolbar.radius-7(flat, :color='$vuetify.dark ? `grey darken-2` : `grey lighten-4`', dense, height='44')
  123. .body-1(:class='$vuetify.dark ? `grey--text text--lighten-1` : `grey--text text--darken-1`') {{$t('editor:assets.fileCount', { count: assets.length })}}
  124. v-btn.ml-3.mr-0.my-0.radius-7(color='teal', large, @click='insert', :disabled='!currentFileId', :dark='currentFileId !== null')
  125. v-icon(left) save_alt
  126. span {{$t('common:actions.insert')}}
  127. v-flex(xs12, lg3)
  128. v-card.radius-7.animated.fadeInRight.wait-p3s(:light='!$vuetify.dark', :dark='$vuetify.dark')
  129. v-card-text
  130. .d-flex
  131. v-toolbar.radius-7(:color='$vuetify.dark ? `teal` : `teal lighten-5`', dense, flat, height='44')
  132. v-icon.mr-3(:color='$vuetify.dark ? `white` : `teal`') cloud_upload
  133. .body-2(:class='$vuetify.dark ? `white--text` : `teal--text`') {{$t('editor:assets.uploadAssets')}}
  134. v-btn.my-0.ml-3.mr-0.radius-7(outline, large, color='teal', @click='browse', v-if='$vuetify.breakpoint.mdAndUp')
  135. v-icon(left) touch_app
  136. span(:class='$vuetify.dark ? `teal--text text--lighten-3` : ``') {{$t('common:actions.browse')}}
  137. file-pond.mt-3(
  138. name='mediaUpload'
  139. ref='pond'
  140. :label-idle='$t(`editor:assets.uploadAssetsDropZone`)'
  141. allow-multiple='true'
  142. :files='files'
  143. max-files='10'
  144. server='/u'
  145. :instant-upload='false'
  146. :allow-revert='false'
  147. @processfile='onFileProcessed'
  148. )
  149. v-divider
  150. v-card-actions.pa-3
  151. .caption.grey--text.text-darken-2 Max 10 files, 5 MB each
  152. v-spacer
  153. v-btn(color='teal', dark, @click='upload') {{$t('common:actions.upload')}}
  154. v-card.mt-3.radius-7.animated.fadeInRight.wait-p4s(:light='!$vuetify.dark', :dark='$vuetify.dark')
  155. v-card-text.pb-0
  156. v-toolbar.radius-7(:color='$vuetify.dark ? `teal` : `teal lighten-5`', dense, flat)
  157. v-icon.mr-3(:color='$vuetify.dark ? `white` : `teal`') cloud_download
  158. .body-2(:class='$vuetify.dark ? `white--text` : `teal--text`') {{$t('editor:assets.fetchImage')}}
  159. v-spacer
  160. v-chip(label, color='white', small).teal--text coming soon
  161. v-text-field.mt-3(
  162. v-model='remoteImageUrl'
  163. outline
  164. single-line
  165. background-color='grey lighten-2'
  166. placeholder='https://example.com/image.jpg'
  167. )
  168. v-divider
  169. v-card-actions.pa-3
  170. .caption.grey--text.text-darken-2 Max 5 MB
  171. v-spacer
  172. v-btn(color='teal', disabled) {{$t('common:actions.fetch')}}
  173. v-card.mt-3.radius-7.animated.fadeInRight.wait-p4s(:light='!$vuetify.dark', :dark='$vuetify.dark')
  174. v-card-text.pb-0
  175. v-toolbar.radius-7(:color='$vuetify.dark ? `teal` : `teal lighten-5`', dense, flat)
  176. v-icon.mr-3(:color='$vuetify.dark ? `white` : `teal`') format_align_left
  177. .body-2(:class='$vuetify.dark ? `white--text` : `teal--text`') {{$t('editor:assets.imageAlign')}}
  178. v-select.mt-3(
  179. v-model='imageAlignment'
  180. :items='imageAlignments'
  181. outline
  182. single-line
  183. background-color='grey lighten-2'
  184. placeholder='None'
  185. )
  186. //- RENAME DIALOG
  187. v-dialog(v-model='renameDialog', max-width='550', persistent)
  188. v-card.wiki-form
  189. .dialog-header.is-short.is-orange
  190. v-icon.mr-2(color='white') keyboard
  191. span {{$t('editor:assets.renameAsset')}}
  192. v-card-text
  193. .body-2 {{$t('editor:assets.renameAssetSubtitle')}}
  194. v-text-field(
  195. outline
  196. single-line
  197. :counter='255'
  198. v-model='renameAssetName'
  199. @keyup.enter='renameAsset'
  200. :disabled='renameAssetLoading'
  201. )
  202. v-card-chin
  203. v-spacer
  204. v-btn(flat, @click='renameDialog = false', :disabled='renameAssetLoading') {{$t('common:actions.cancel')}}
  205. v-btn(color='orange darken-3', @click='renameAsset', :loading='renameAssetLoading').white--text {{$t('common:actions.rename')}}
  206. //- DELETE DIALOG
  207. v-dialog(v-model='deleteDialog', max-width='550', persistent)
  208. v-card.wiki-form
  209. .dialog-header.is-short.is-red
  210. v-icon.mr-2(color='white') highlight_off
  211. span {{$t('editor:assets.deleteAsset')}}
  212. v-card-text
  213. .body-2 {{$t('editor:assets.deleteAssetConfirm')}}
  214. .body-2.red--text.text--darken-2 {{currentAsset.filename}}?
  215. .caption.mt-3 {{$t('editor:assets.deleteAssetWarn')}}
  216. v-card-chin
  217. v-spacer
  218. v-btn(flat, @click='deleteDialog = false', :disabled='deleteAssetLoading') {{$t('common:actions.cancel')}}
  219. v-btn(color='red darken-2', @click='deleteAsset', :loading='deleteAssetLoading').white--text {{$t('common:actions.delete')}}
  220. </template>
  221. <script>
  222. import _ from 'lodash'
  223. import { sync } from 'vuex-pathify'
  224. import vueFilePond from 'vue-filepond'
  225. import 'filepond/dist/filepond.min.css'
  226. import listAssetQuery from 'gql/editor/editor-media-query-list.gql'
  227. import listFolderAssetQuery from 'gql/editor/editor-media-query-folder-list.gql'
  228. import createAssetFolderMutation from 'gql/editor/editor-media-mutation-folder-create.gql'
  229. import renameAssetMutation from 'gql/editor/editor-media-mutation-asset-rename.gql'
  230. import deleteAssetMutation from 'gql/editor/editor-media-mutation-asset-delete.gql'
  231. const FilePond = vueFilePond()
  232. const localeSegmentRegex = /^[A-Z]{2}(-[A-Z]{2})?$/i
  233. const disallowedFolderChars = /[A-Z()=.!@#$%?&*+`~<>,;:\\/[\]¬{| ]/
  234. export default {
  235. components: {
  236. FilePond
  237. },
  238. props: {
  239. value: {
  240. type: Boolean,
  241. default: false
  242. }
  243. },
  244. data() {
  245. return {
  246. folders: [],
  247. folderTree: [],
  248. files: [],
  249. assets: [],
  250. pagination: {},
  251. remoteImageUrl: '',
  252. imageAlignments: [
  253. { text: 'None', value: '' },
  254. { text: 'Left', value: 'left' },
  255. { text: 'Centered', value: 'center' },
  256. { text: 'Right', value: 'right' },
  257. { text: 'Absolute Top Right', value: 'abstopright' }
  258. ],
  259. imageAlignment: '',
  260. currentFolderId: 0,
  261. currentFileId: null,
  262. previousFolderId: 0,
  263. loading: false,
  264. newFolderDialog: false,
  265. newFolderName: '',
  266. newFolderLoading: false,
  267. previewDialog: false,
  268. renameDialog: false,
  269. renameAssetName: '',
  270. renameAssetLoading: false,
  271. deleteDialog: false,
  272. deleteAssetLoading: false
  273. }
  274. },
  275. computed: {
  276. isShown: {
  277. get() { return this.value },
  278. set(val) { this.$emit('input', val) }
  279. },
  280. activeModal: sync('editor/activeModal'),
  281. pageTotal () {
  282. if (this.pagination.rowsPerPage == null || this.pagination.totalItems == null) {
  283. return 0
  284. }
  285. return Math.ceil(this.assets.length / this.pagination.rowsPerPage)
  286. },
  287. headers() {
  288. return _.compact([
  289. this.$vuetify.breakpoint.smAndUp && { text: this.$t('editor:assets.headerId'), value: 'id', width: 50, align: 'right' },
  290. { text: this.$t('editor:assets.headerFilename'), value: 'filename' },
  291. this.$vuetify.breakpoint.lgAndUp && { text: this.$t('editor:assets.headerType'), value: 'ext', width: 50 },
  292. this.$vuetify.breakpoint.mdAndUp && { text: this.$t('editor:assets.headerFileSize'), value: 'fileSize', width: 110 },
  293. this.$vuetify.breakpoint.mdAndUp && { text: this.$t('editor:assets.headerAdded'), value: 'createdAt', width: 175 },
  294. this.$vuetify.breakpoint.smAndUp && { text: this.$t('editor:assets.headerActions'), value: '', width: 40, sortable: false, align: 'right' }
  295. ])
  296. },
  297. isFolderNameValid() {
  298. return this.newFolderName.length > 1 && !localeSegmentRegex.test(this.newFolderName) && !disallowedFolderChars.test(this.newFolderName)
  299. },
  300. currentAsset () {
  301. return _.find(this.assets, ['id', this.currentFileId]) || {}
  302. }
  303. },
  304. watch: {
  305. newFolderDialog(newValue, oldValue) {
  306. if (newValue) {
  307. this.$nextTick(() => {
  308. this.$refs.folderNameIpt.focus()
  309. })
  310. }
  311. }
  312. },
  313. filters: {
  314. prettyBytes(num) {
  315. if (typeof num !== 'number' || isNaN(num)) {
  316. throw new TypeError('Expected a number')
  317. }
  318. let exponent
  319. let unit
  320. let neg = num < 0
  321. let units = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
  322. if (neg) {
  323. num = -num
  324. }
  325. if (num < 1) {
  326. return (neg ? '-' : '') + num + ' B'
  327. }
  328. exponent = Math.min(Math.floor(Math.log(num) / Math.log(1000)), units.length - 1)
  329. num = (num / Math.pow(1000, exponent)).toFixed(2) * 1
  330. unit = units[exponent]
  331. return (neg ? '-' : '') + num + ' ' + unit
  332. }
  333. },
  334. methods: {
  335. async refresh() {
  336. await this.$apollo.queries.assets.refetch()
  337. this.$store.commit('showNotification', {
  338. message: this.$t('editor:assets.refreshSuccess'),
  339. style: 'success',
  340. icon: 'check'
  341. })
  342. },
  343. insert () {
  344. const asset = _.find(this.assets, ['id', this.currentFileId])
  345. const assetPath = this.folderTree.map(f => f.slug).join('/')
  346. this.$root.$emit('editorInsert', {
  347. kind: asset.kind,
  348. path: this.currentFolderId > 0 ? `/${assetPath}/${asset.filename}` : `/${asset.filename}`,
  349. text: asset.filename,
  350. align: this.imageAlignment
  351. })
  352. this.activeModal = ''
  353. },
  354. browse () {
  355. this.$refs.pond.browse()
  356. },
  357. async upload () {
  358. const files = this.$refs.pond.getFiles()
  359. if (files.length < 1) {
  360. return this.$store.commit('showNotification', {
  361. message: this.$t('editor:assets.noUploadError'),
  362. style: 'warning',
  363. icon: 'warning'
  364. })
  365. }
  366. for (let file of files) {
  367. file.setMetadata({
  368. folderId: this.currentFolderId
  369. })
  370. }
  371. await this.$refs.pond.processFiles()
  372. },
  373. async onFileProcessed (err, file) {
  374. if (err) {
  375. return this.$store.commit('showNotification', {
  376. message: this.$t('editor:assets.uploadFailed'),
  377. style: 'error',
  378. icon: 'error'
  379. })
  380. }
  381. _.delay(() => {
  382. this.$refs.pond.removeFile(file.id)
  383. }, 5000)
  384. await this.$apollo.queries.assets.refetch()
  385. },
  386. downFolder(folder) {
  387. this.folderTree.push(folder)
  388. this.currentFolderId = folder.id
  389. this.currentFileId = null
  390. },
  391. upFolder() {
  392. this.folderTree.pop()
  393. const parentFolder = _.last(this.folderTree)
  394. this.currentFolderId = parentFolder ? parentFolder.id : 0
  395. this.currentFileId = null
  396. },
  397. async createFolder() {
  398. this.$store.commit(`loadingStart`, 'editor-media-createfolder')
  399. this.newFolderLoading = true
  400. try {
  401. const resp = await this.$apollo.mutate({
  402. mutation: createAssetFolderMutation,
  403. variables: {
  404. parentFolderId: this.currentFolderId,
  405. slug: this.newFolderName
  406. }
  407. })
  408. if (_.get(resp, 'data.assets.createFolder.responseResult.succeeded', false)) {
  409. await this.$apollo.queries.folders.refetch()
  410. this.$store.commit('showNotification', {
  411. message: this.$t('editor:assets.folderCreateSuccess'),
  412. style: 'success',
  413. icon: 'check'
  414. })
  415. this.newFolderDialog = false
  416. this.newFolderName = ''
  417. } else {
  418. this.$store.commit('pushGraphError', new Error(_.get(resp, 'data.assets.createFolder.responseResult.message')))
  419. }
  420. } catch (err) {
  421. this.$store.commit('pushGraphError', err)
  422. }
  423. this.newFolderLoading = false
  424. this.$store.commit(`loadingStop`, 'editor-media-createfolder')
  425. },
  426. openRenameDialog() {
  427. this.renameAssetName = this.currentAsset.filename
  428. this.renameDialog = true
  429. },
  430. async renameAsset() {
  431. this.$store.commit(`loadingStart`, 'editor-media-renameasset')
  432. this.renameAssetLoading = true
  433. try {
  434. const resp = await this.$apollo.mutate({
  435. mutation: renameAssetMutation,
  436. variables: {
  437. id: this.currentFileId,
  438. filename: this.renameAssetName
  439. }
  440. })
  441. if (_.get(resp, 'data.assets.renameAsset.responseResult.succeeded', false)) {
  442. await this.$apollo.queries.assets.refetch()
  443. this.$store.commit('showNotification', {
  444. message: this.$t('editor:assets.renameSuccess'),
  445. style: 'success',
  446. icon: 'check'
  447. })
  448. this.renameDialog = false
  449. this.renameAssetName = ''
  450. } else {
  451. this.$store.commit('pushGraphError', new Error(_.get(resp, 'data.assets.renameAsset.responseResult.message')))
  452. }
  453. } catch (err) {
  454. this.$store.commit('pushGraphError', err)
  455. }
  456. this.renameAssetLoading = false
  457. this.$store.commit(`loadingStop`, 'editor-media-renameasset')
  458. },
  459. async deleteAsset() {
  460. this.$store.commit(`loadingStart`, 'editor-media-deleteasset')
  461. this.deleteAssetLoading = true
  462. try {
  463. const resp = await this.$apollo.mutate({
  464. mutation: deleteAssetMutation,
  465. variables: {
  466. id: this.currentFileId
  467. }
  468. })
  469. if (_.get(resp, 'data.assets.deleteAsset.responseResult.succeeded', false)) {
  470. this.currentFileId = null
  471. await this.$apollo.queries.assets.refetch()
  472. this.$store.commit('showNotification', {
  473. message: this.$t('editor:assets.deleteSuccess'),
  474. style: 'success',
  475. icon: 'check'
  476. })
  477. this.deleteDialog = false
  478. } else {
  479. this.$store.commit('pushGraphError', new Error(_.get(resp, 'data.assets.deleteAsset.responseResult.message')))
  480. }
  481. } catch (err) {
  482. this.$store.commit('pushGraphError', err)
  483. }
  484. this.deleteAssetLoading = false
  485. this.$store.commit(`loadingStop`, 'editor-media-deleteasset')
  486. }
  487. },
  488. apollo: {
  489. folders: {
  490. query: listFolderAssetQuery,
  491. variables() {
  492. return {
  493. parentFolderId: this.currentFolderId
  494. }
  495. },
  496. fetchPolicy: 'network-only',
  497. update: (data) => data.assets.folders,
  498. watchLoading (isLoading) {
  499. this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'editor-media-folders-list-refresh')
  500. }
  501. },
  502. assets: {
  503. query: listAssetQuery,
  504. variables() {
  505. return {
  506. folderId: this.currentFolderId,
  507. kind: 'ALL'
  508. }
  509. },
  510. throttle: 1000,
  511. fetchPolicy: 'network-only',
  512. update: (data) => data.assets.list,
  513. watchLoading (isLoading) {
  514. this.loading = isLoading
  515. this.$store.commit(`loading${isLoading ? 'Start' : 'Stop'}`, 'editor-media-list-refresh')
  516. }
  517. }
  518. }
  519. }
  520. </script>
  521. <style lang='scss'>
  522. .editor-modal-media {
  523. position: fixed;
  524. top: 112px;
  525. left: 64px;
  526. z-index: 10;
  527. width: calc(100vw - 64px - 17px);
  528. height: calc(100vh - 112px - 24px);
  529. background-color: rgba(darken(mc('grey', '900'), 3%), .9) !important;
  530. overflow: auto;
  531. @include until($tablet) {
  532. left: 40px;
  533. width: calc(100vw - 40px);
  534. height: calc(100vh - 112px - 24px);
  535. }
  536. .filepond--root {
  537. margin-bottom: 0;
  538. }
  539. .filepond--drop-label {
  540. cursor: pointer;
  541. > label {
  542. cursor: pointer;
  543. }
  544. }
  545. .v-btn--icon {
  546. padding: 0 20px;
  547. }
  548. }
  549. </style>