Skip to content

Commit fd112e5

Browse files
committed
adjust mobile stylung
1 parent c08fb86 commit fd112e5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>Vue.js HN Clone</title>
6-
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
6+
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
77
<link rel="icon" href="static/logo.png" type="image/x-icon">
88
</head>
99
<body>

src/components/comment.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<a :href="'#/user/' + comment.by">{{comment.by}}</a>
66
{{comment.time | fromNow}} ago
77
</div>
8-
<div class="comment-content" v-show="open">
8+
<p class="comment-content" v-show="open">
99
{{{comment.text}}}
10-
</div>
10+
</p>
1111
<ul class="child-comments" v-if="comment.kids" v-show="open">
1212
<comment v-for="comment in childComments" :comment="comment"></comment>
1313
</ul>
@@ -54,6 +54,7 @@ module.exports = {
5454
5555
.comment-content
5656
margin 0 0 16px 24px
57+
word-wrap break-word
5758
code
5859
white-space pre-wrap
5960

0 commit comments

Comments
 (0)