diff --git a/.storybook/decorators/with-ui-store.js b/.storybook/decorators/with-ui-store.js
new file mode 100644
index 0000000000..82c48d822b
--- /dev/null
+++ b/.storybook/decorators/with-ui-store.js
@@ -0,0 +1,18 @@
+import { ref, onMounted } from '@nuxtjs/composition-api'
+
+import { useLayout } from '~/composables/use-layout'
+
+export const WithUiStore = (story) => {
+ return {
+ template: `
{{
element.toUpperCase()
}}
-
+
{{ $t(`browse-page.license-description.${element}`) }}
@@ -25,7 +25,7 @@ import { computed, defineComponent, PropType } from '@nuxtjs/composition-api'
import type { License } from '~/constants/license'
import { LICENSE_ICONS } from '~/constants/license'
-
+import { useUiStore } from '~/stores/ui'
import { getElements } from '~/utils/license'
import VIcon from '~/components/VIcon/VIcon.vue'
@@ -56,11 +56,14 @@ export default defineComponent({
)
const isSmall = computed(() => props.size === 'small')
+ const uiStore = useUiStore()
+ const isMobile = computed(() => !uiStore.isDesktopLayout)
return {
icons: LICENSE_ICONS,
elementNames,
isSmall,
+ isMobile,
}
},
})
diff --git a/src/components/VMediaInfo/VMediaLicense.vue b/src/components/VMediaInfo/VMediaLicense.vue
index b988df3d2a..723270c0e2 100644
--- a/src/components/VMediaInfo/VMediaLicense.vue
+++ b/src/components/VMediaInfo/VMediaLicense.vue
@@ -8,10 +8,10 @@