Change admin display-row css so that multiple lines can fit in the control column. Don't hard-code a height on the rows.

This commit is contained in:
Neil Lalonde 2013-11-11 15:03:17 -05:00
parent d65cd0f97e
commit 2f8866add5
3 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,7 @@
<div class='value'><a href="mailto:{{unbound email}}">{{email}}</a></div>
</div>
<div class='display-row' style='height: 50px'>
<div class='display-row'>
<div class='field'>{{i18n user.avatar.title}}</div>
<div class='value'>{{avatar content imageSize="large"}}</div>
</div>
@ -46,7 +46,7 @@
</div>
</div>
<div class='display-row' style='height: 50px'>
<div class='display-row'>
<div class='field'>{{i18n user.ip_address.title}}</div>
<div class='value'>{{ip_address}}</div>
<div class='controls'>

View File

@ -195,7 +195,6 @@ table {
}
.display-row {
height: 30px;
line-height: 30px;
padding: 5px;
&:nth-of-type(1) {
@ -235,6 +234,9 @@ table {
}
.controls {
width: 600px;
float: left;
margin-left: 12px;
.btn {
margin-right: 5px;
}

View File

@ -117,7 +117,7 @@ describe StaffActionLogger do
end
describe "log_user_suspend" do
let(:user) { Fabricate(:user) }
let(:user) { Fabricate(:user, suspended_at: 10.minutes.ago, suspended_till: 1.day.from_now) }
it "raises an error when arguments are missing" do
expect { logger.log_user_suspend(nil, nil) }.to raise_error(Discourse::InvalidParameters)