Skip to content

Commit

Permalink
Closes #2607 & #2608 (#2609)
Browse files Browse the repository at this point in the history
Fixed #2607  "The width of blue background for text messages fixed."
Fixed # 2608 "Focus on banner should frame just the banner itself and not the whole line with the banner"

---------

Co-authored-by: lbownik <[email protected]>
  • Loading branch information
lbownik and lbownik authored Dec 10, 2024
1 parent 363170c commit 074d534
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public void setImage(StreamedContent image) {
public String getLink() {
return link;
}


public void setLink(String link) {
this.link = link;
Expand Down
2 changes: 1 addition & 1 deletion dataverse-webapp/src/main/webapp/dataverse_header.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@

</div>

<div id="dataverse-header-block">
<div id="dataverse-header-block" class="container">
<div class="alert alert-warning" jsf:rendered="#{systemConfig.isReadonlyMode()}">
<p class="text-block text-center" style="margin: 0 auto;">
<span class="glyphicon glyphicon-exclamation-sign"></span>&#160;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
</ui:repeat>

<ui:repeat value="#{banners}" var="banner">
<div class="p-col">
<h:commandLink style="display: block;"
<div style="display: flex;align-content: center;">
<h:commandLink style="text-align: center; display: block; margin: auto; padding: 10px; "
target="_blank"
disabled="#{banner.link == null}"
action="#{MessagesAndBannersFragment.redirect(banner.link)}">
<p:graphicImage style="display: block ;margin-left: auto; margin-right: auto; padding: 2px;"
<p:graphicImage
stream="false"
value="#{banner.image}"
alt="#{bundle['header.banner.alt']} #{banner.link != null ? bundle['opensInNewTab'] : ''}"
title="#{bundle['header.banner.alt']} #{banner.link != null ? bundle['opensInNewTab'] : ''}"
/>
</h:commandLink>
</h:commandLink>
</div>
</ui:repeat>
</div>
Expand Down

0 comments on commit 074d534

Please sign in to comment.