Skip to content

Commit c099a73

Browse files
authored
Dev/reply (#51)
* feat: reply support * fix: annonymuous bug * feat: reply orders * feat: scroll to comment * temp: disabled share reply * chore: ui fix * fix: disabled hash * chore: time fix * fix: padding of teachers
1 parent 6b09b47 commit c099a73

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

src/components/global/Footer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
</span>
88
<span class="version-info">
99
v{{ version }}
10-
<span v-if="buildHash" class="build-hash">
10+
<!-- <span v-if="buildHash" class="build-hash">
1111
(Build: {{ buildHash }})
12-
</span>
12+
</span> -->
1313
<a
1414
href="https://github.com/ShanghaitechGeekPie/coursebench-frontend/releases/latest"
1515
target="_blank"

src/components/users/comment/CommentCardContent.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ export default {
258258
overflow: hidden;
259259
}
260260
261+
.router-container {
262+
margin: 0px 0.1rem;
263+
}
264+
261265
.router-container:hover {
262266
cursor: pointer;
263267
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
function unixToReadable(unix) {
2-
return new Date(unix * 1000).toISOString().slice(0, 19).replace('T', ' ');
2+
return new Date(unix * 1000).toLocaleString('zh-CN', {
3+
year: 'numeric',
4+
month: '2-digit',
5+
day: '2-digit',
6+
hour: '2-digit',
7+
minute: '2-digit',
8+
});
39
}
410

511
export { unixToReadable };

0 commit comments

Comments
 (0)