Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
teresa-ou committed Jun 27, 2020
1 parent 6e14391 commit f554283
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inboxy: Inbox Bundles for Gmail",
"version": "1.5.0",
"version": "1.5.1",
"description": "Adds Google Inbox bundles to Gmail",
"homepage_url": "https://www.inboxymail.com",
"background": {
Expand Down
20 changes: 16 additions & 4 deletions dist/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,20 @@ html.inboxy.dark-theme .bundle-row.zE.visible {
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

html.inboxy .bundle-row.visible {
flex-wrap: nowrap;
}

html.inboxy .bundle-row.visible .xY.yX {
font-size: 1.025rem;
margin-left: 56px;
/* Truncate for reading pane view. See #36. */
max-width: calc(100% - 220px);
}

html.inboxy .bundle-row.visible .bundle-and-count {
overflow: hidden;
text-overflow: ellipsis;
}

/* Handle long label names */
Expand All @@ -83,15 +94,16 @@ html.inboxy .bundle-row:not(.visible) .xY {
align-items: flex-start;
height: unset;
}
/* Allow more width before wrapping */
/* Allow more width before wrapping (#11), but not too much so that #36 happens */
html.inboxy .bundle-row:not(.visible) .xY.yX {
padding-right: 12px;
flex-basis: 188px;
max-width: 188px;
flex-basis: 180px;
max-width: 180px;
}

html.inboxy .bundle-row.visible .bundle-date-cell,
html.inboxy .bundle-row.visible .bundle-senders {
/* .bundle-senders parent */
html.inboxy .bundle-row.visible .a4W {
display: none;
}

Expand Down
4 changes: 3 additions & 1 deletion src/bundling/Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class Bundler {
bundleMessages(reopenRecentBundle) {
const bundledMail = this.bundledMail;
const possibleMessageLists = document.querySelectorAll(Selectors.POSSIBLE_MESSAGE_LISTS);
const messageList = possibleMessageLists.length ? possibleMessageLists.item(1) : null;
const messageList = possibleMessageLists.length
? possibleMessageLists.item(possibleMessageLists.length - 1)
: null;

if (!messageList) {
return;
Expand Down
5 changes: 4 additions & 1 deletion src/components/BundleRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ function create(label, order, messages, hasUnread, toggleBundle, baseUrl) {
const bulkArchiveTd = DomUtils.htmlToElement(`<td class="${GmailClasses.CELL}"></td>`);
bulkArchiveTd.appendChild(bulkArchiveButton);

const labelUrl = label.split(' ').join('+').split('/').join('%2F');
const labelUrl = label
.split(' ').join('-')
.split('/').join('%2F')
.split('&').join('-');
const url = `${baseUrl}#search/label%3AInbox+label%3A${labelUrl}`;
const viewAllButtonHtml = `
<td class="${GmailClasses.CELL}">
Expand Down

0 comments on commit f554283

Please sign in to comment.