Skip to content

Commit

Permalink
adicionado um div para agrupar os itens referente a coleção servidore…
Browse files Browse the repository at this point in the history
…s e repositórios. Dessa maneira é possível controlar a quebra dos dois elementos, evitando as viúvas citadas na descrição do problema. O div recebeu a propriedade display inline block para ter o comportamento esperado.
  • Loading branch information
Ramon authored and patymori committed Mar 23, 2021
1 parent 91bf370 commit 20038a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/views/partials/collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</a>
</dd>
<?php endforeach; ?>

<div>
<?php
// Servidores e repositórios
$counter = 0;
Expand All @@ -59,7 +59,7 @@
</a>
</dd>
<?php endforeach; ?>

</div>
<?php
// Livros
$counter = 0;
Expand Down
4 changes: 4 additions & 0 deletions static/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ section{
column-count: 1;
column-gap: 0;

div{
display: inline-block;
}

@media (orientation: landscape) {

@media (min-width: 485px) and (max-width: 850px) {
Expand Down

0 comments on commit 20038a2

Please sign in to comment.