Skip to content

Commit

Permalink
Merge pull request #7535 from IQSS/7326-wrap-btn-text
Browse files Browse the repository at this point in the history
Fix btn text word wrap, other responsive layout improvements [ref #7326]
  • Loading branch information
kcondon committed Jan 29, 2021
2 parents 156e31d + 44abcff commit abcf9fd
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ citationFrame.banner.countdownMessage.seconds=seconds
dataset.access.accessHeader=Restrict Files and Add Dataset Terms of Access
dataset.access.description=Restricting limits access to published files. You can add or edit Terms of Access for the dataset, and allow people to Request Access to restricted files.

#dataserFieldForEditFragment.xhtml
#datasetFieldForEditFragment.xhtml
dataset.AddReplication=Add "Replication Data for" to Title
dataset.replicationDataFor=Replication Data for:

Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/dashboard-users.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<p:watermark for="searchFiles" value="#{bundle['dashboard.list_users.searchTerm.watermark']}"/>
<p:remoteCommand name="submitsearch" action="#{DashboardUsersPage.runUserSearch()}" process="@this @widgetVar(inputSearchTerm)" update="@form" partialSubmit="true"/>
<span class="input-group-btn">
<p:commandLink styleClass="btn btn-default" action="#{DashboardUsersPage.runUserSearch()}" process="@this @widgetVar(inputSearchTerm)" update="@form" partialSubmit="true">
<span class="glyphicon glyphicon-search"></span> #{bundle['dataverse.search.btn.find']}
<p:commandLink title="#{bundle['dataverse.search.btn.find']}" styleClass="btn btn-default bootstrap-button-tooltip" action="#{DashboardUsersPage.runUserSearch()}" process="@this @widgetVar(inputSearchTerm)" update="@form" partialSubmit="true">
<span class="glyphicon glyphicon-search no-text"/>
</p:commandLink>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/dataset-citation.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<span class="glyphicon glyphicon-question-sign text-primary" jsf:rendered="#{DatasetPage.workingVersion.deaccessioned}"
data-toggle="tooltip" data-placement="top" data-original-title="#{bundle['dataset.cite.title.deassessioned']}"/>
</div>
<div class="pull-left row col-sm-8 padding-none">
<div class="pull-left row col-sm-9 padding-none">
<div class="col-sm-3 col-md-4 col-lg-3 btn-group margin-bottom citation-download" jsf:rendered="#{!DatasetPage.workingVersion.deaccessioned}">
<button type="button" class="btn btn-link dropdown-toggle padding-none downloadCitation" data-toggle="dropdown">
#{bundle['dataset.cite.downloadBtn']} <span class="caret"></span>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
<!-- END: ActionButtonBlock -->
</div>

<div class="col-xs-12 col-sm-12 col-md-4 col-lg-3 pull-right margin-bottom"
<div style="clear:right;" class="col-xs-12 col-sm-12 col-md-4 col-lg-3 pull-right margin-bottom"
jsf:rendered="#{!(settingsWrapper.rsyncDownload or DatasetPage.workingVersion.deaccessioned)}">
<!-- Metrics -->
<div id="metrics-block">
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/dataverse_header.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
<div class="input-group">
<input id="navbarsearch" type="text" class="form-control" size="28" value="" placeholder="#{bundle['header.search.title']}" aria-labelledby="searchNavLabel"/>
<span class="input-group-btn">
<button type="submit" class="btn btn-default" onclick="window.location='/dataverse/#{dataverseServiceBean.findRootDataverse().alias}&#63;q=' + document.getElementById('navbarsearch').value;return false;">
<span class="glyphicon glyphicon-search"/> #{bundle.find}
<button type="submit" title="#{bundle.find}" class="btn btn-default bootstrap-button-tooltip" onclick="window.location='/dataverse/#{dataverseServiceBean.findRootDataverse().alias}&#63;q=' + document.getElementById('navbarsearch').value;return false;">
<span class="glyphicon glyphicon-search no-text"/>
</button>
</span>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/file.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<span class="glyphicon glyphicon-question-sign text-primary" jsf:rendered="#{FilePage.fileMetadata.datasetVersion.dataset.released and FilePage.fileMetadata.datasetVersion.draft}"
data-toggle="tooltip" data-placement="top" data-original-title="#{bundle['dataset.cite.title.draft']}"/>
</div>
<div class="pull-left row col-sm-8 padding-none">
<div class="pull-left row col-sm-9 padding-none">
<div class="col-sm-3 col-md-4 col-lg-3 btn-group margin-bottom citation-download" jsf:rendered="#{!FilePage.fileMetadata.datasetVersion.deaccessioned}">
<button type="button" class="btn btn-link dropdown-toggle padding-none downloadCitation" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
#{bundle['file.cite.file.downloadBtn']} <span class="caret"></span>
Expand Down Expand Up @@ -140,7 +140,7 @@
<span class="glyphicon glyphicon-question-sign text-primary" jsf:rendered="#{FilePage.fileMetadata.datasetVersion.deaccessioned}"
data-toggle="tooltip" data-placement="top" data-original-title="#{bundle['dataset.cite.title.deassessioned']}"/>
</div>
<div class="pull-left row col-sm-8 padding-none">
<div class="pull-left row col-sm-9 padding-none">
<div class="col-sm-3 col-md-4 col-lg-3 btn-group margin-bottom citation-download" jsf:rendered="#{!FilePage.fileMetadata.datasetVersion.deaccessioned}">
<button type="button" class="btn btn-link dropdown-toggle padding-none downloadCitation" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
#{bundle['dataset.cite.downloadBtn']} <span class="caret"></span>
Expand Down Expand Up @@ -260,7 +260,7 @@
<!-- END: ActionButtonBlock -->
</div>

<div class="col-xs-12 col-sm-12 col-md-4 col-lg-3 pull-right margin-bottom"
<div style="clear:right;" class="col-xs-12 col-sm-12 col-md-4 col-lg-3 pull-right margin-bottom"
jsf:rendered="#{!(widgetWrapper.widgetView or FilePage.fileMetadata.dataFile.filePackage or FilePage.fileMetadata.datasetVersion.deaccessioned)}">
<!-- Metrics -->
<div id="metrics-block">
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/filesFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
<p:remoteCommand name="submitsearch" action="#{DatasetPage.updateFileSearch()}" process="@this @widgetVar(inputSearchTerm)" update="@form" partialSubmit="true"/>

<span class="input-group-btn">
<p:commandLink styleClass="btn btn-default" action="#{DatasetPage.updateFileSearch()}" process="@this @widgetVar(inputSearchTerm)" update="@form" partialSubmit="true">
<span class="glyphicon glyphicon-search"></span> #{bundle['dataverse.search.btn.find']}
<p:commandLink title="#{bundle['dataverse.search.btn.find']}" styleClass="btn btn-default bootstrap-button-tooltip" action="#{DatasetPage.updateFileSearch()}" process="@this @widgetVar(inputSearchTerm)" update="@form" partialSubmit="true">
<span class="glyphicon glyphicon-search no-text"/>
</p:commandLink>
</span>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/webapp/resources/css/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ span.ui-autocomplete input.ui-autocomplete-input {width:100%;}
.ui-autocomplete input {padding:6px 12px; margin:0;}

/* Overwrite Bootstrap */
.btn, .input-group-btn {white-space: normal !important;}

@media print {
a[href]:after {
content: none;
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/search-include-fragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<p:watermark for="searchBasic" value="#{dataverseRedirectPage == 'dataverseuser.xhtml' ? bundle['account.search.input.watermark'] : bundle['dataverse.search.input.watermark']}"/>

<span class="input-group-btn">
<p:commandLink id="searchbutton" styleClass="btn btn-default"
<p:commandLink id="searchbutton" title="#{bundle['dataverse.search.btn.find']}" styleClass="btn btn-default bootstrap-button-tooltip"
action="#{SearchIncludeFragment.searchRedirect(dataverseRedirectPage, DataversePage.dataverse)}">
<span class="glyphicon glyphicon-search"/> #{bundle['dataverse.search.btn.find']}
<span class="glyphicon glyphicon-search no-text"/>
</p:commandLink>
</span>

Expand Down

0 comments on commit abcf9fd

Please sign in to comment.