mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 12:42:57 +08:00
poster_expansion will only slide down now.
This commit is contained in:
parent
172e517b31
commit
b5ca30bf56
|
@ -15,7 +15,7 @@ Discourse.PosterExpansionView = Discourse.View.extend({
|
|||
// Position the expansion when the post changes
|
||||
_visibleChanged: function() {
|
||||
var post = this.get('controller.model'),
|
||||
self = this;
|
||||
div = this.$();
|
||||
|
||||
Em.run.schedule('afterRender', function() {
|
||||
if (post) {
|
||||
|
@ -25,8 +25,14 @@ Discourse.PosterExpansionView = Discourse.View.extend({
|
|||
|
||||
if (position) {
|
||||
position.left += $avatar.width() + 5;
|
||||
self.$().css(position);
|
||||
div.css(position);
|
||||
}
|
||||
|
||||
var maxWidth = div.width();
|
||||
if (maxWidth < 250) {
|
||||
maxWidth = 250;
|
||||
}
|
||||
div.css({ maxWidth: maxWidth });
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -11,9 +11,10 @@
|
|||
margin-top: -2px;
|
||||
background-color: $primary_background_color;
|
||||
padding: 12px 12px 5px 12px;
|
||||
max-width: 350px;
|
||||
|
||||
h1 {
|
||||
display: inline-block;
|
||||
min-width: 120px;
|
||||
font-size: 30px;
|
||||
line-height: 33px;
|
||||
margin-bottom: 8px;
|
||||
|
|
Loading…
Reference in New Issue
Block a user