summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-02-16 09:43:08 -0800
committerShawn O. Pearce <sop@google.com>2009-02-16 10:22:10 -0800
commitb0bf482fb56809b9a340a9f1ffd7f70ecafe8dc7 (patch)
tree1021aa986f3098ce6ae1b0a590715c5fbf77db4e
parenta0bdc9a346a22e1fb336d1e9a7a8af1fade16bd8 (diff)
Cleanup the ApprovalTable formatting for adding a reviewer
I just didn't like the way this was presenting on screen. The label had a 10px left margin, shoving it over the input box by 10 pixels, but the inpux box itself wasn't indented with any margin. The whole UI looked a bit getto to me when we had missing approvals and we had the add reviewer option visible. We now don't draw a label for the add reviewer box, but instead put the action directly into the button. It should be quite clear to a user that entering a "Name or Email" and pressing "Add Reviewer" will add another reviewer, specified by the name or email address, to this change. The 10px indent has also been removed, making everything line up with the left edge of the approval table, which looks a lot more uniform. Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--src/main/java/com/google/gerrit/client/changes/ApprovalTable.java4
-rw-r--r--src/main/java/com/google/gerrit/public/Gerrit.css6
2 files changed, 1 insertions, 9 deletions
diff --git a/src/main/java/com/google/gerrit/client/changes/ApprovalTable.java b/src/main/java/com/google/gerrit/client/changes/ApprovalTable.java
index 284e1a94f2..261a05d16e 100644
--- a/src/main/java/com/google/gerrit/client/changes/ApprovalTable.java
+++ b/src/main/java/com/google/gerrit/client/changes/ApprovalTable.java
@@ -70,14 +70,12 @@ public class ApprovalTable extends Composite {
addReviewer = new FlowPanel();
addReviewer.setStyleName("gerrit-Change-AddReviewer");
addMemberBox = new AddMemberBox();
+ addMemberBox.setAddButtonText(Util.C.approvalTableAddReviewer());
addMemberBox.addClickListener(new ClickListener() {
public void onClick(final Widget sender) {
doAddReviewer();
}
});
- final Label l = new Label(Util.C.approvalTableAddReviewer());
- l.setStyleName("gerrit-Change-AddReviewerLabel");
- addReviewer.add(l);
addReviewer.add(addMemberBox);
addReviewer.setVisible(false);
diff --git a/src/main/java/com/google/gerrit/public/Gerrit.css b/src/main/java/com/google/gerrit/public/Gerrit.css
index e8c66e73b1..25bcbe22ae 100644
--- a/src/main/java/com/google/gerrit/public/Gerrit.css
+++ b/src/main/java/com/google/gerrit/public/Gerrit.css
@@ -615,18 +615,12 @@
margin-top: 5px;
}
.gerrit-Change-MissingApproval {
- margin-left: 10px;
font-weight: bold;
white-space: nowrap;
}
.gerrit-Change-AddReviewer {
margin-top: 5px;
-}
-
-.gerrit-Change-AddReviewerLabel {
- margin-left: 10px;
- font-weight: bold;
white-space: nowrap;
}