mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
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:
parent
d65cd0f97e
commit
2f8866add5
@ -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'>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user