Skip to content

Commit

Permalink
fix: listing same height
Browse files Browse the repository at this point in the history
  • Loading branch information
benabraham committed Aug 16, 2023
1 parent b416b26 commit e2e96d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
18 changes: 7 additions & 11 deletions static_src/scss/_custom-css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,27 +202,23 @@ ul {
.PC-sessions-session {
overflow: hidden;


/*&-l-1 {
background: lime;
background-color: lightgreen;
grid-column: span 2;
}
&-l-2 {
background: orange;
background-color: orange;
grid-column: span 3;
}
&-l-3 {
background-color: red;
grid-column: span 4;
}
//&-l-3 { // we have no sessions with 3 speakers
// background-color: palevioletred;
// grid-column: span 4;
//}
&-l-4 {
background: black;
background-color: skyblue;
grid-column: span 5;
}*/



}
10 changes: 7 additions & 3 deletions templates/program/__session.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
{% comment %}<h2>{{ session.title }} talks</h2>{% endcomment %}
{% comment %}<pre>{{ session|pprint }}</pre>{% endcomment %}

<div class="col h-100">
<article class="h-100 PC-sessions-session PC-sessions-session-l-{{ session.talk_speakers.all|length }} border border-black shadow border-2 rounded">
<div class="PC-sessions-photo position-relative h-100">
<div class="col">
<article class="
h-100 PC-sessions-session
PC-sessions-session-l-{{ session.talk_speakers.all|length }}
PC-sessions-session-l-{{ session.workshop_speakers.all|length }}
border border-black shadow border-2 rounded">
<div class="PC-sessions-photo position-relative">
<div class="PC-image-primary d-flex">
{% for speaker in session.talk_speakers.all %}
<img class="img-fluid" src="{{ speaker.photo.url }}" width="300" height="300" alt="">
Expand Down
1 change: 1 addition & 0 deletions templates/program/talks_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

{% endcomment %}


{% block more_sessions_name %}talks{% endblock %}


Expand Down

0 comments on commit e2e96d1

Please sign in to comment.