mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Merge pull request #1611 from jbargu/jg_sci_3226_3243
Too much empty space between date buttons [SCI-3243] [SCI-3226]
This commit is contained in:
commit
fe3e92468f
2 changed files with 8 additions and 4 deletions
|
@ -202,13 +202,14 @@ $(function() {
|
|||
updateRunning = false;
|
||||
GlobalActivitiesUpdateTopPaneTags();
|
||||
reloadActivities();
|
||||
resetHotButtonsBackgroundColor();
|
||||
});
|
||||
|
||||
$('#calendar-to-date').on('dp.change', function(e) {
|
||||
var dateContainer = $('.ga-side .date-selector.filter-block');
|
||||
if (!updateRunning) {
|
||||
$('#calendar-from-date').data('DateTimePicker').minDate(e.date);
|
||||
dateContainer[0].dataset.periodSelect = $('#calendar-from-date').val() + ' - ' + $('#calendar-to-date').val();
|
||||
dateContainer[0].dataset.periodSelect = $('#calendar-to-date').val() + ' - ' + $('#calendar-from-date').val();
|
||||
GlobalActivitiesUpdateTopPaneTags();
|
||||
reloadActivities();
|
||||
resetHotButtonsBackgroundColor();
|
||||
|
@ -219,7 +220,7 @@ $(function() {
|
|||
var dateContainer = $('.ga-side .date-selector.filter-block');
|
||||
if (!updateRunning) {
|
||||
$('#calendar-to-date').data('DateTimePicker').maxDate(e.date);
|
||||
dateContainer[0].dataset.periodSelect = $('#calendar-from-date').val() + ' - ' + $('#calendar-to-date').val();
|
||||
dateContainer[0].dataset.periodSelect = $('#calendar-to-date').val() + ' - ' + $('#calendar-from-date').val();
|
||||
GlobalActivitiesUpdateTopPaneTags();
|
||||
reloadActivities();
|
||||
resetHotButtonsBackgroundColor();
|
||||
|
|
|
@ -119,14 +119,13 @@
|
|||
|
||||
.hot-buttons {
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
width: 100%;
|
||||
|
||||
.hot-button {
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
margin: 5px;
|
||||
margin: 0;
|
||||
opacity: 0.7;
|
||||
text-align: left;
|
||||
width: calc(50% - 25px);
|
||||
|
@ -147,6 +146,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.from,
|
||||
.to {
|
||||
float: left;
|
||||
|
|
Loading…
Reference in a new issue