Skip to content

Commit

Permalink
OY-4335 Irrotettu hakutoiveen otsikkotietojen ja valintatapajonon gri…
Browse files Browse the repository at this point in the history
…dit toisistaan

  Aikaisemmin leveä valintatapajono aiheuttti myös otsikkotietojen valumisen
  oikealta ulos kapealla ruudulle.
  • Loading branch information
jkorri committed Jun 15, 2023
1 parent e1f905b commit 09164c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/main/js/directives/valintatulos.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
{{ $index + 1 }}
</div>
</div>

<div class="hakutoive-wrapper">

<div class="hakutoive-grid">
<div class="hakutoive-grid__kuvaus hakutoive-grid__hakutoive-grid-item">
<span class="hakutoive-grid__kuvaus--tarjoaja-nimi">{{ hakutoive.tarjoajaNimi }}</span>
Expand Down Expand Up @@ -78,6 +81,8 @@
</div>
</div>
</div>
</div>
<div class="hakutoive-grid">
<div class="hakutoive-grid__valintatapajonon-valintatapa hakutoive-grid__valintatapajono-grid-item hakutoive-grid__valintatapajono-header"
ng-if="isJonokohtaisetTulostiedotVisible(hakutoive)">
<span class="hakutoive-grid__valintatapajono-grid-text">
Expand Down Expand Up @@ -134,6 +139,8 @@
{{ getVarasijaDisclaimer(jonokohtainenTulostieto) }}
</span>
</div>
</div>

</div>
</div>
</div>
13 changes: 10 additions & 3 deletions src/main/less/hakemuseditori/templates/valintatulos.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
width: 100%;
}

.hakutoive-wrapper {
width: 100%;
}

.hakutoive-grid__kuvaus--tarjoaja-nimi {
font-weight: 600;
}
Expand Down Expand Up @@ -219,7 +223,7 @@
font-weight: 600;
}

.hakutoive-grid .hakutoive-grid__valintatapajono-grid-item:nth-child(-n+6) {
.hakutoive-grid .hakutoive-grid__valintatapajono-grid-item:nth-child(-n+4) {
border-top: 1px solid #8B99A0;
margin-top: 10px;
}
Expand Down Expand Up @@ -300,9 +304,13 @@
.hakutoive__prioriteetti--sticky-container {
height: 140px;
}
.hakutoive-grid {

.hakutoive-wrapper {
flex-basis: 1040px;
flex-grow: 1;
}

.hakutoive-grid {
grid-template-columns: auto 150px 150px 415px;
padding: 10px 35px;
width: 100%;
Expand Down Expand Up @@ -388,7 +396,6 @@

.hakutoive-grid__valintatapajonon-valinnan-tulos {
grid-column-start: 4;
grid-column-end: 6;
padding-left: 3em;
}
}

0 comments on commit 09164c9

Please sign in to comment.