Skip to content

Commit 5394da2

Browse files
committed
[update] tips
update some dom maximum width.
1 parent 245094c commit 5394da2

File tree

9 files changed

+30
-25
lines changed

9 files changed

+30
-25
lines changed

src/components/CheckDays/Rank/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ export default {
105105
z-index: 2001;
106106
}
107107
.mainContainer {
108-
@apply relative py-4 my-2;
108+
@apply relative py-4 my-2 max-w-xs;
109109
}
110110
111111
.card {
112-
@apply flex-col px-2;
112+
@apply flex-col px-4;
113113
}
114114
.time {
115115
@apply text-xs font-bold opacity-60;

src/components/Leetcode/Controller/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default {
9494
initLeetcodeAccount: function () {
9595
this.$public.emit("notice", {
9696
type: "loading",
97-
msg: `🕹 正在尝试登入 Leetcode.cn(zh-CN)`,
97+
msg: `🕹 正在尝试登入`,
9898
});
9999
this.$leetcode
100100
.getUserStatus()
@@ -111,7 +111,7 @@ export default {
111111
if (response.data.data.userStatus.isSignedIn)
112112
this.$public.emit("notice", {
113113
type: "success",
114-
msg: `已登入 Leetcode.cn(zh-CN)`,
114+
msg: `已成功登入`,
115115
});
116116
else
117117
this.$public.emit("notice", {

src/components/Leetcode/List/index.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default {
117117
getQuestionContent: _debounce(function (slug) {
118118
this.$public.emit("notice", {
119119
type: "loading",
120-
msg: "🎈 正在从 Leetcode 获取题目详情...",
120+
msg: "🎈 正在获取题目详情...",
121121
});
122122
this.$leetcode
123123
.getCookie("https://leetcode-cn.com/graphql/")
@@ -136,15 +136,15 @@ export default {
136136
this.$public.emit("leetcode-toggle-list-show", !this.isShowList);
137137
this.$public.emit("notice", {
138138
type: "success",
139-
msg: `✔ 从 Leetcode 获取题目详情成功 -${this.question.title}`,
139+
msg: `获取题目详情 成功 -${this.question.title}`,
140140
});
141141
});
142142
}, 200);
143143
}, 1000),
144144
getQuestionPage: _throttle(function (val) {
145145
if (val <= 0)
146146
this.$public.emit("notice", {
147-
msg: "❌ 从 Leetcode 获取题目失败:页号非法",
147+
msg: "获取题目 失败: 页号非法",
148148
type: "error",
149149
closefunc: () => {
150150
this.clickable = true;
@@ -153,7 +153,7 @@ export default {
153153
else if (val <= this.totalPages && val != null && this.clickable) {
154154
this.$public.emit("notice", {
155155
type: "loading",
156-
msg: "🎈 正在从 Leetcode 获取题目...",
156+
msg: "🎈 正在从获取题目...",
157157
});
158158
this.clickable = false;
159159
this.$leetcode
@@ -168,12 +168,12 @@ export default {
168168
this.clickable = true;
169169
this.$public.emit("notice", {
170170
type: "success",
171-
msg: "✔ 从 Leetcode 获取题目成功",
171+
msg: "获取题目 成功",
172172
});
173173
});
174174
} else
175175
this.$public.emit("notice", {
176-
msg: "❌ 从 Leetcode 获取题目失败:页号非法",
176+
msg: "获取题目 失败: 页号非法",
177177
type: "error",
178178
closefunc: () => {
179179
this.clickable = true;

src/components/Leetcode/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default {
3232

3333
<style scoped lang="postcss">
3434
.leetcode {
35-
@apply w-full h-full;
35+
@apply w-full h-full
36+
max-w-5xl;
3637
}
3738
</style>

src/components/Setting/About/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
:opDisabled="isDisabled"
99
:opCallbackFn="goForAuthor"
1010
/>
11-
<!-- <SettingOption
11+
<SettingOption
1212
opTitle="关于本软件"
1313
opType="button"
1414
opTip="前往 GitHub 查看本项目 本项目遵循 GUN3.0 协议"
1515
opBtnText="前往"
1616
:opDisabled="isDisabled"
1717
:opCallbackFn="goForSoftware"
18-
/> -->
18+
/>
1919
</div>
2020
</template>
2121

src/components/Sign/in/index.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default {
217217
218218
.iContainer {
219219
@apply relative flex flex-col justify-center items-center w-1/3 h-full mx-auto pt-16 pb-12
220-
mt-32 rounded-2xl shadow overflow-hidden;
220+
mt-32 rounded shadow overflow-hidden;
221221
min-width: 650px;
222222
}
223223
@@ -226,11 +226,11 @@ export default {
226226
}
227227
228228
.btnContainer {
229-
@apply flex w-1/3 justify-between;
229+
@apply flex flex-col w-1/3 justify-between;
230230
}
231231
232232
.signBar {
233-
@apply absolute bottom-0 rounded-full inline-block bg-blue-400 w-full h-1.5 transition-all;
233+
@apply absolute bottom-0 rounded-b-full inline-block bg-blue-400 w-full h-1.5 transition-all;
234234
}
235235
.signBar.loading {
236236
animation: loading infinite 1.5s ease-in-out;
@@ -250,10 +250,14 @@ button:focus {
250250
@apply outline-none;
251251
}
252252
button:focus::before {
253-
content: ">";
253+
content: "·";
254254
@apply inline-block pr-1 font-semibold;
255255
}
256256
257+
.el-icon-loading {
258+
@apply inline;
259+
}
260+
257261
@media (prefers-color-scheme: dark) {
258262
.iContainer {
259263
@apply bg-gray-900;

src/components/Sign/up/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default {
268268
269269
.iContainer {
270270
@apply relative flex flex-col justify-center items-center w-2/5 h-full mx-auto pt-16 pb-12
271-
mt-32 rounded-2xl shadow overflow-hidden;
271+
mt-32 rounded shadow overflow-hidden;
272272
min-width: 650px;
273273
}
274274
@@ -281,11 +281,11 @@ export default {
281281
}
282282
283283
.btnContainer {
284-
@apply flex w-1/3 justify-between;
284+
@apply flex flex-col w-1/3 justify-between;
285285
}
286286
287287
.signBar {
288-
@apply absolute bottom-0 rounded-full inline-block bg-blue-400 w-full h-1.5 transition-all;
288+
@apply absolute bottom-0 rounded-b-full inline-block bg-blue-400 w-full h-1.5 transition-all;
289289
}
290290
.signBar.loading {
291291
animation: loading infinite 1.5s ease-in-out;
@@ -298,7 +298,7 @@ button:focus {
298298
@apply outline-none;
299299
}
300300
button:focus::before {
301-
content: ">";
301+
content: "·";
302302
@apply inline-block pr-1 font-semibold;
303303
}
304304

src/views/Code.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626

2727
<style scoped lang="postcss">
2828
.code {
29-
@apply w-full h-auto py-4;
29+
@apply inline-flex justify-center w-full h-auto py-4;
3030
}
3131
3232
@media (prefers-color-scheme: dark) {

src/views/Controller.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default {
4949
});
5050
5151
this.$public.on("notice", ({ title, msg, type, time, fn }) => {
52-
let duration = 1500,
52+
let duration = 3000,
5353
position = "bottom-right";
5454
5555
this.$notify({
@@ -113,15 +113,15 @@ export default {
113113
fn: () => {
114114
this.$public.emit("notice", {
115115
type: "success",
116-
msg: `键值挂载完毕`,
116+
msg: `键值挂载完毕`,
117117
});
118118
},
119119
})
120120
.catch((err) => {
121121
this.$public.emit("notice", {
122122
type: "error",
123123
time: 5000,
124-
msg: `❌ 挂载失败 您将失去大部分可使用的功能 ${err}`,
124+
msg: `键值挂载失败 ${err}`,
125125
});
126126
});
127127
},

0 commit comments

Comments
 (0)