Skip to content

Commit 01dae32

Browse files
authored
Optimize app detail component styles and animations (#121)
1 parent 42b8cb0 commit 01dae32

File tree

7 files changed

+1229
-1350
lines changed

7 files changed

+1229
-1350
lines changed

src/assets/scss/common/_animate.scss

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,23 @@
159159
.slide-next-enter-active,
160160
.slide-prev-enter-active,
161161
.slide-prev-leave-active {
162-
// transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);
162+
animation-timing-function:cubic-bezier(0.69,0,0.26,1);
163163
transition-duration: 0.35s;
164-
}
164+
}
165+
166+
.slide-next-half-leave-active,
167+
.slide-next-half-enter-active {
168+
animation-timing-function:cubic-bezier(0.69,0,0.26,1);
169+
transition-duration: 0.35s;
170+
}
171+
172+
173+
.slide-next-half-enter-to,
174+
.slide-next-half-leave {
175+
transform: translateX(0);
176+
}
177+
178+
.slide-next-half-enter,
179+
.slide-next-half-leave-to {
180+
transform: translateX(-30%);
181+
}

src/components/AppStore/AppDetail/AppDescription.vue

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
<!--
2-
* @Author: zhanghengxin ezreal.zhang@icewhale.org
3-
* @Date: 2023-08-31 15:40:59
4-
* @LastEditors: zhanghengxin ezreal.zhang@icewhale.org
5-
* @LastEditTime: 2023-09-15 11:05:07
6-
* @FilePath: /CasaOS-App-UI/src/components/AppStore/AppDetail/AppDescription.vue
7-
* @Description:
8-
*
9-
* Copyright (c) 2022 by IceWhale, All Rights Reserved.
10-
-->
111
<template>
12-
<div class="app-desc mt-4 mb-6">
2+
<div class="mt-4 mb-6 app-desc">
133
<VMdEditor
144
:value="i18n(appDetailData.description)" mode="preview"
155
left-toolbar right-toolbar>
166
</VMdEditor>
17-
<!-- <p class="is-size-14px un-break-word">{{ i18n(appDetailData.description) }}</p> -->
187
</div>
198
</template>
209

@@ -39,7 +28,9 @@ defineExpose({
3928

4029
<style scoped>
4130
::v-deep .github-markdown-body{
31+
font-family: "BrittiSans";
4232
padding: 1rem 0 0 0;
43-
line-height: 1.25rem;
33+
line-height: 1.5rem;
34+
font-size: 0.875rem;
4435
}
4536
</style>

src/components/AppStore/AppDetail/AppDetail.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
<AppDescription
3333
:appDetailData="appDetailData"
3434
></AppDescription>
35-
36-
<SpiltLine />
37-
3835
</section>
3936
</div>
4037
</template>

0 commit comments

Comments
 (0)