diff --git a/css/_grams.scss b/css/_grams.scss index e16b55d..7fcb535 100644 --- a/css/_grams.scss +++ b/css/_grams.scss @@ -85,6 +85,21 @@ div.gram.same:hover div.meta { position: absolute; z-index: 1; margin-left: $grid-gutter-width; + + .fat { + max-height: 0; + transition: max-height .1s ease-in-out; + overflow: hidden; + } + + .fat pre { color: #fff; } + + &:hover .fat { + max-height: 16rem; + overflow: scroll; + background-color: #000; + color: #fff; + } } .exp { @@ -101,21 +116,6 @@ div.gram.same:hover div.meta { background-color: #000; padding: .3rem; } - - .fat { - max-height: 0; - transition: max-height .1s ease-in-out; - overflow: hidden; - } - - .fat pre { color: #fff; } - - &:hover .fat { - max-height: 16rem; - overflow: scroll; - background-color: #000; - color: #fff; - } } .comment { diff --git a/js/components/StationComponent.coffee b/js/components/StationComponent.coffee index 64b0eef..961c6f0 100644 --- a/js/components/StationComponent.coffee +++ b/js/components/StationComponent.coffee @@ -50,6 +50,10 @@ module.exports = recl v = $input.val().toLowerCase() if v[0] isnt "~" then v = "~#{v}" if @validateSource v + # to avoid waiting on thousands of messages, just load in the backlog + # from the past day. + d = new Date (new Date() - 24*3600*1000) + v = v + "/" + window.urb.util.toDate(d) StationActions.addSources @state.station,[v] $input.val('') $input.blur()