Skip to content

Commit d8aef7d

Browse files
authored
Merge pull request #715 from citation-file-format/fix-author-scroll
fix extra margin
2 parents 7385ace + f850db0 commit d8aef7d

1 file changed

Lines changed: 55 additions & 59 deletions

File tree

src/components/InfoDialog.vue

Lines changed: 55 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,65 @@
11
<template>
2-
<div
3-
class="q-pa-md q-gutter-sm"
2+
<q-dialog
3+
v-model="showDialog"
44
>
5-
<q-dialog
6-
v-model="showDialog"
5+
<q-card
6+
class="window-width help-dialog"
77
>
8-
<q-card
9-
class="window-width help-dialog"
10-
>
11-
<q-card-section class="row items-center q-pb-none">
12-
<div class="text-h5">
13-
CFF field: {{ data.title }}
14-
</div>
15-
<q-space />
16-
<q-btn
17-
icon="close"
18-
flat
19-
round
20-
dense
21-
v-close-popup
22-
/>
23-
</q-card-section>
8+
<q-card-section class="row items-center q-pb-none">
9+
<div class="text-h5">
10+
CFF field: {{ data.title }}
11+
</div>
12+
<q-space />
13+
<q-btn
14+
icon="close"
15+
flat
16+
round
17+
dense
18+
v-close-popup
19+
/>
20+
</q-card-section>
2421

25-
<q-card-section>
26-
{{ data.description }}
27-
</q-card-section>
28-
<q-card-section v-if="data.examples">
29-
<div class="text-h6">
30-
Examples
31-
</div>
32-
<ul>
33-
<li
34-
v-for="item in data.examples"
35-
v-bind:key="item"
36-
class="q-mt-sm"
37-
>
38-
<div
39-
v-for="(line, index) in item.split('\n')"
40-
v-bind:key="index"
41-
>
42-
{{ line }}
43-
</div>
44-
</li>
45-
</ul>
46-
</q-card-section>
47-
<q-card-section v-if="data.url">
48-
<div class="text-h6">
49-
Related links
50-
</div>
51-
<div
52-
v-for="item in data.url"
22+
<q-card-section>
23+
{{ data.description }}
24+
</q-card-section>
25+
<q-card-section v-if="data.examples">
26+
<div class="text-h6">
27+
Examples
28+
</div>
29+
<ul>
30+
<li
31+
v-for="item in data.examples"
5332
v-bind:key="item"
33+
class="q-mt-sm"
5434
>
55-
<a
56-
v-bind:href="item.link"
57-
tabindex="-1"
58-
target="_blank"
35+
<div
36+
v-for="(line, index) in item.split('\n')"
37+
v-bind:key="index"
5938
>
60-
{{ item.text }}
61-
</a>
62-
</div>
63-
</q-card-section>
64-
</q-card>
65-
</q-dialog>
66-
</div>
39+
{{ line }}
40+
</div>
41+
</li>
42+
</ul>
43+
</q-card-section>
44+
<q-card-section v-if="data.url">
45+
<div class="text-h6">
46+
Related links
47+
</div>
48+
<div
49+
v-for="item in data.url"
50+
v-bind:key="item"
51+
>
52+
<a
53+
v-bind:href="item.link"
54+
tabindex="-1"
55+
target="_blank"
56+
>
57+
{{ item.text }}
58+
</a>
59+
</div>
60+
</q-card-section>
61+
</q-card>
62+
</q-dialog>
6763
</template>
6864

6965
<script lang="ts">

0 commit comments

Comments
 (0)