Skip to content

Commit

Permalink
Fix bugs with index display in mobile view
Browse files Browse the repository at this point in the history
The first article's photo was being hidden because of an overeager
CSS change I'd made to make the article photo look better on mobile
(cf67195)
  • Loading branch information
dellsystem committed Nov 16, 2018
1 parent 76d53a2 commit 97a8b93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django/newsocialist/static/css/styles.css
Expand Up @@ -455,7 +455,7 @@ blockquote cite::before {
.article-third .article-title a {
position: static;
}
.article-photo {
.article-photo-desktop {
display: none;
}
.article-photo-mobile {
Expand Down
2 changes: 1 addition & 1 deletion django/templates/article.html
Expand Up @@ -14,7 +14,7 @@
{% block content %}
<article class="page-content" id="article-top">
<div class="ui container">
<div class="article-photo print-hide"
<div class="article-photo article-photo-desktop print-hide"
style="background-image: url('{{ article.get_image_url }}'); background-position: {{ article.background_position|default:"center" }}">
</div>
<div class="article-photo-mobile print-hide">
Expand Down
2 changes: 1 addition & 1 deletion django/templates/index.html
Expand Up @@ -10,7 +10,7 @@
<div class="ui container">
{% if request.user.is_staff %}
<div class="ui {% if unpublished.count %}warning{% else %}green{% endif %} message">
<div class="ui grid">
<div class="ui stackable grid">
<div class="ten wide column">
<h3 class="ui header">
Welcome, {{ request.user.first_name }}
Expand Down

0 comments on commit 97a8b93

Please sign in to comment.