Skip to content

Commit

Permalink
fix: restrict words in news grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirrito-k423 committed Jan 22, 2024
1 parent 37ed0f5 commit 4ad1c9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/news/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3>
{{ range .Data.Pages }}
{{ if and (and (ne .Params.selectedInFirstPage 2) (ne .Params.selectedInFirstPage 1)) (ne .Params.selectedInFirstPage 3)}}

<article class="small-grid">
<article class="small-grid auto-height">
<div class = "small-grid-pic">
<a href="{{ .RelPermalink }}">
{{ $img := .Params.img_url }}
Expand All @@ -133,7 +133,7 @@ <h3>
{{ end }}
</a>
</div>
<div class="small-grid-content">
<div class="small-grid-content small-news-content">
<div class="post-meta">
<p>{{ .Params.types }}</p>
</div>
Expand Down
10 changes: 10 additions & 0 deletions static/css/style5News.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@
line-height: 1.2em;
}

.auto-height{
height: auto;
}

.small-news-content{
position: relative;
top: 0;
padding: 28px 28px 10px 28px;
}

@media only screen and (max-width: 1450px) {
.first-grid {
width: 95%;
Expand Down

0 comments on commit 4ad1c9c

Please sign in to comment.