Skip to content

Commit

Permalink
#7714 fix margins on "too big" alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Apr 12, 2021
1 parent e79b640 commit 0a00ddf
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@
<button type="button" class="btn btn-primary btn-access-dataset dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
#{bundle['dataset.accessBtn']} <span class="caret"></span>
</button>
<ul class="dropdown-menu pull-right text-left">

<ul class="dropdown-menu pull-right text-left" style="padding-left:1em;" >
<!-- DOWNLOAD -->
<ui:fragment rendered="#{DatasetPage.canDownloadFiles() and !(DatasetPage.sizeOfDatasetNumeric > settingsWrapper.zipDownloadLimit) }">
<li class="dropdown-header">#{bundle['dataset.accessBtn.header.download']} <span class="glyphicon glyphicon-download-alt"/></li>
Expand All @@ -158,12 +157,12 @@
</h:outputFormat>
</p:commandLink>
</li>
<div>
<ui:fragment rendered="#{DatasetPage.canDownloadFiles() and (DatasetPage.sizeOfDatasetOrigNumeric > settingsWrapper.zipDownloadLimit) }">
<h:outputText value="#{bundle['dataset.accessBtn.too.big']}">
</h:outputText>
</ui:fragment>
</div>

<li jsf:rendered="#{DatasetPage.canDownloadFiles() and (DatasetPage.sizeOfDatasetOrigNumeric > settingsWrapper.zipDownloadLimit) }" style="margin-left: 3.5em;">
<h:outputText value="#{bundle['dataset.accessBtn.too.big']}" >
</h:outputText>
</li>

<!-- DOWNLOAD ORIGINAL BUTTON (TABULAR FILES PRESENT) -->
<li jsf:rendered="#{DatasetPage.versionHasTabular and DatasetPage.sizeOfDatasetOrig != '0 B' and !(DatasetPage.sizeOfDatasetOrigNumeric > settingsWrapper.zipDownloadLimit) }">
<p:commandLink update="@form" actionListener="#{DatasetPage.validateAllFilesForDownloadOriginal()}"
Expand Down

0 comments on commit 0a00ddf

Please sign in to comment.