Skip to content

Commit f4a59f1

Browse files
authored
Merge pull request #728 from yuki384/master
Fix layout Dojos because those descriptions are cut off
2 parents f155718 + aba6930 commit f4a59f1

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

app/assets/stylesheets/custom.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,16 +521,22 @@ body>footer a:hover {
521521
padding-top: 1em;
522522
margin: .4em
523523
}
524+
.dojo-flex{
525+
display: flex !important;
526+
flex-wrap: wrap;
527+
justify-content: center;
528+
margin: auto;
529+
}
524530

525531
.dojo {
526-
display: inline-block;
527-
height: 300px;
528532
width: 45%;
529533
margin: 5px;
530534
padding: 15px 0;
531535
background: #fff;
532536
position: relative;
533-
text-align: center
537+
text-align: center;
538+
display: block;
539+
height: auto
534540
}
535541

536542
.dojo>p {
@@ -622,8 +628,7 @@ body>footer a:hover {
622628

623629
@media only screen and (min-width:560px) {
624630
.dojo {
625-
width: 220px;
626-
height: 275px;
631+
width: calc(220px - 10px);
627632
margin: 10px;
628633
}
629634
.event {

app/views/shared/_dojos.html+smartphone.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
= region
99
\- #{dojos.count} Dojos
1010
.panel-collapse.collapse{:id => "collapse#{index}", :role => "tabpanel"}
11-
.panel-body.grayscale-bg
11+
.panel-body.grayscale-bg.dojo-flex
1212
= render partial: 'shared/dojo', collection: dojos

app/views/shared/_dojos.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
%ul.loaded
1+
%ul.loaded.dojo-flex
22
= render partial: 'shared/dojo', collection: regions_and_dojos.values.flatten

0 commit comments

Comments
 (0)