Skip to content

Commit ecc3d9d

Browse files
Reggie CushingReggie Cushing
authored andcommitted
adding fill width for download and add more button
1 parent bcfdc6f commit ecc3d9d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/DownloadButton.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
type="a"
99
download="CITATION.cff"
1010
v-bind:href="downloadUrl"
11+
v-bind:class="$q.platform.is.mobile ? 'full-width' : ''"
1112
/>
1213
</template>
1314

1415
<script lang="ts">
1516
import { computed, defineComponent } from 'vue'
1617
import { useCffstr } from 'src/store/cffstr'
18+
import { useQuasar } from 'quasar'
1719
1820
const toDownloadUrl = (body: string) => {
1921
return `data:text/vnd.yaml,${encodeURIComponent(body)}`
@@ -23,8 +25,9 @@ export default defineComponent({
2325
name: 'DownloadButton',
2426
setup () {
2527
const { cffstr } = useCffstr()
26-
28+
const $q = useQuasar()
2729
return {
30+
$q,
2831
downloadUrl: computed(() => toDownloadUrl(cffstr.value))
2932
}
3033
}

src/components/ScreenFinishMinimum.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
size="xl"
3434
to="/identifiers"
3535
v-on:click="showAdvanced"
36+
v-bind:class="$q.platform.is.mobile ? 'full-width' : ''"
3637
/>
3738
</div>
3839
</div>
@@ -48,6 +49,7 @@
4849
import { computed, defineComponent } from 'vue'
4950
import DownloadButton from 'components/DownloadButton.vue'
5051
import { useApp } from 'src/store/app'
52+
import { useQuasar } from 'quasar'
5153
import { useValidation } from 'src/store/validation'
5254
5355
export default defineComponent({
@@ -58,7 +60,9 @@ export default defineComponent({
5860
setup () {
5961
const { setShowAdvanced, setStepName } = useApp()
6062
const { errors } = useValidation()
63+
const $q = useQuasar()
6164
return {
65+
$q,
6266
isValidCFF: computed(() => errors.value.length === 0),
6367
showAdvanced: async () => {
6468
setShowAdvanced(true)

0 commit comments

Comments
 (0)