Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeychilson committed Dec 21, 2023
1 parent 86beefc commit 80574d6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions assets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ video {
margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.break-words {
overflow-wrap: break-word;
}

.rounded-md {
border-radius: 0.375rem;
}
Expand Down
2 changes: 1 addition & 1 deletion components/comments.templ
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ templ Comments(comments []types.Item, level int) {
| { time.Unix(comment.Time, 0).Format("2006-01-02 15:04:05") }
</span>
</div>
<p class="text-sm">
<p class="text-sm word-wrap break-words overflow-wrap break-word">
{ comment.Text }
</p>
<div class="mt-2">
Expand Down
2 changes: 1 addition & 1 deletion components/comments_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion layouts/default.templ
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ templ Default(title string) {
{ "Hacker News" }
}
</title>
<link href="/assets/app.css" rel="stylesheet"/>
<meta name="description" content="A Hacker News clone using go, templ, tailwind and no JS."/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="/assets/app.css"/>
</head>
@components.Header()
<body class="bg-gray-100">
Expand Down
2 changes: 1 addition & 1 deletion layouts/default_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80574d6

Please sign in to comment.