Skip to content

Commit dbad5b0

Browse files
committed
feat: ui improvements
1 parent 7137209 commit dbad5b0

4 files changed

Lines changed: 25 additions & 25 deletions

File tree

components/Dialog/AppCreditsDialog/AppCreditsDialog.component.scss

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@
44
#{$vs-dialog} {
55
background-color: var(--color-ui-03);
66
box-shadow: var(--box-shadow-01);
7-
}
87

9-
&__body {
10-
padding: calc(#{$spacer} * 4);
11-
color: var(--color-text-02);
12-
font-size: var(--font-size-text-20);
13-
text-align: center;
8+
&__content {
9+
padding: calc(#{$spacer} * 8);
10+
color: var(--color-text-02);
11+
font-size: var(--font-size-text-20);
12+
text-align: center;
13+
}
14+
15+
&__footer {
16+
display: flex;
17+
flex-direction: column;
18+
max-width: 50%;
19+
margin: 0 auto;
20+
padding-bottom: calc(#{$spacer} * 4);
21+
}
1422
}
1523
}

components/Dialog/AppCreditsDialog/AppCreditsDialog.component.vue

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,18 @@
22
vs-dialog.app-credits-dialog(v-model="dialog.isOpen" blur @close="handleClose")
33
template(#header)
44
AppLogo.mt-4
5-
.app-credits-dialog__body
6-
p(v-html="$t('credits.description')")
5+
6+
p(v-html="$t('credits.description')")
7+
78
template(#footer)
8-
vs-button.mx-auto(transparent href="https://github.com/selimdoyranli/4in1crop" blank)
9+
vs-button(color="#171515" href="https://github.com/selimdoyranli/4in1crop" blank)
910
AppIcon.me-1(name="charm:github" color="var(--color-text-02)")
1011
span.color-text-02 Github repository
1112

1213
// Buymeacoffee Button
13-
script(
14-
type="text/javascript"
15-
src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js"
16-
data-name="bmc-button"
17-
data-slug="selimdoyranli"
18-
data-color="#FFDD00"
19-
data-emoji
20-
data-font="Inter"
21-
data-text="Buy me a coffee"
22-
data-outline-color="#000000"
23-
data-font-color="#000000"
24-
data-coffee-color="#ffffff"
25-
)
14+
vs-button(color="#FD0" href="https://www.buymeacoffee.com/selimdoyranli" blank)
15+
AppIcon.me-1(name="simple-icons:buymeacoffee" color="var(--color-text-02)")
16+
span.color-text-02 Donate
2617
</template>
2718

2819
<script>

components/Menu/AspectRatioSelectMenu/AspectRatioSelectMenu.component.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.aspect-ratio-select-menu__group.aspect-ratio-select-menu__group--standard
55
.aspect-ratio-select-menu-item(
66
v-for="ratio in aspectRatio.standard.list"
7-
:key="ratio"
7+
:key="ratio.key"
88
:class="[getSelectedClass(ratio)]"
99
@click="selectRatio(ratio)"
1010
)
@@ -14,7 +14,7 @@
1414
.aspect-ratio-select-menu__group.aspect-ratio-select-menu__group--social
1515
.aspect-ratio-select-menu-item(
1616
v-for="ratio in aspectRatio.social.list"
17-
:key="ratio"
17+
:key="ratio.key"
1818
:class="[getSelectedClass(ratio)]"
1919
@click="selectRatio(ratio)"
2020
)

components/Panel/CropPanel/CropPanel.component.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
span.crop-panel-footer__label
3131
template(v-if="type === cropTypeEnum.FREE")
3232
span {{ $t('editor.freeform') }}
33-
span(v-if="selectedFreeFormRatio && selectedFreeFormRatio.key !== cropTypeEnum.FREE") &nbsp; ({{ selectedFreeFormRatio.title }})
33+
span(v-if="selectedFreeFormRatio && selectedFreeFormRatio.key !== cropTypeEnum.FREE") &nbsp;
34+
| ({{ selectedFreeFormRatio.title.replace(/<\/?[^>]+(>|$)/g, '') }})
3435
template(v-else) {{ aspectRatio }}
3536

3637
template(v-if="panel.cropper")

0 commit comments

Comments
 (0)