Skip to content

Commit 082306d

Browse files
committed
Move subtitle inside panel.
1 parent 360954f commit 082306d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

rnacentral/portal/static/css/gene.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,15 @@ text-decoration: none;
617617
margin-bottom: 0.25rem;
618618
margin-top: 0;
619619
}
620-
620+
.gene__litsumm-subtitle {
621+
padding-inline: 10px;
622+
padding-block-end: 20px;
623+
margin: 0;
624+
}
621625
.gene__litsumm-subtitle span {
622-
color: #BF8E3E;
626+
color: rgb(38, 183, 231);
627+
font-size: 1.4rem;
628+
font-weight: bold;
623629
}
624630

625631
.gene__litsumm-caution {

rnacentral/portal/static/js/components/gene-detail/gene-detail.template.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@ <h2 class="gene__widget-title">Gene Summary</h2>
4848
<section class="gene__litsumm-section" ng-if="vm.litsummSummaries && vm.litsummSummaries.length > 0">
4949
<div class="gene-container">
5050
<div class="gene__litsumm-header">
51-
<h4 class="gene__litsumm-subtitle">{{ vm.litsummSummaries[0].urs }} - <span>{{vm.geneData.summary}}</span></h4>
5251
<p class="gene__litsumm-caution">
5352
Caution, this is an AI generated summary based on literature. This may have errors, see <a href="/help/litsumm" target="_blank">here for more</a>. Please share your <a href="#" target="_blank">feedback</a> with us.
5453
</p>
5554
</div>
5655
<div id="gene-litsumm-carousel" class="gene__litsumm-carousel">
5756
<div class="panel panel-default gene__litsumm-panel"
5857
ng-repeat="item in vm.litsummSummaries">
58+
<div class="gene__litsumm-subtitle">
59+
<span ng-bind-html="item.urs"></span> - <span>{{vm.geneData.summary}}</span>
60+
</div>
61+
5962
<p class="gene__litsumm-summary" ng-bind-html="item.summary"></p>
6063
</div>
6164
</div>

0 commit comments

Comments
 (0)