Skip to content

Commit d48a432

Browse files
committed
Fix look of api.tools.add_compose_button() in new Gmail.
Update changelog.
1 parent 11786d7 commit d48a432

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11

22
# Changelog
33

4+
## Version 0.7.2
5+
6+
- Fix look of `api.tools.add_compose_button()` in new Gmail.
7+
48
## Version 0.7.1
59

610
- Add detection-code for new Gmail.
711
- Fix locale-detection in new Gmail.
12+
- Preliminary work on supporting events in new Gmail.
813

914
## Version 0.7.0
1015

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gmail-js",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "JavaScript API for Gmail (useful for chrome extensions)",
55
"main": "src/gmail.js",
66
"types": "src/gmail.d.ts",

src/gmail.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2562,11 +2562,12 @@ var Gmail = function(localJQuery) {
25622562

25632563
api.tools.add_compose_button = function(composeWindow, content_html, onClickFunction, styleClass) {
25642564
var button = $(document.createElement("div"));
2565-
var buttonClasses = "T-I J-J5-Ji aoO L3 ";
2565+
var buttonClasses = "T-I J-J5-Ji aoO T-I-atl L3 ";
25662566
if(styleClass !== undefined){
25672567
buttonClasses += styleClass;
25682568
}
25692569
button.attr("class", buttonClasses);
2570+
button.attr("style", "margin-left: 8px; max-width: 500px;");
25702571
button.html(content_html);
25712572
button.click(onClickFunction);
25722573

0 commit comments

Comments
 (0)