Skip to content

notifications-ui - Unwrap Read/Unread - #9726

Merged
fregante merged 3 commits into
mainfrom
notifications-unwrap
Jun 13, 2026
Merged

fregante merged 3 commits into
mainfrom
notifications-unwrap

Conversation

@fregante

Copy link
Copy Markdown
Member

margin: 0 !important;
}
}
}

@fregante fregante Jun 13, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two issues:

  • buttons are too wide
  • mr-1 is left behind on the native icons, adding extra space

Before:

Image

After:

Image

Maybe they're too small now though

{icon}
{/* Spaces collapsed, use mr-1 to space words */}
<span className="not-sm-sr-only sr-only mr-1">Mark as</span>
{upperCaseFirst(status)}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Mark as unread" is too long, the icons can't stand alone, so Read/Unread it is on mobile

Image

appendBefore(
selectedActionsGroup,
'details',
selectedActionsGroup.append(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there's no ... anymore, the Open button can be appended, ensuring it appears at the end of the list

}

function addDropdown(selectAllCheckbox: HTMLInputElement): void {
selectAllCheckbox.style.verticalAlign = '-0.2em'; // #7852

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a while now this has caused misalignment

Comment thread source/refined-github.css
}
.js-check-all-container .js-bulk-action-toasts ~ div .Box-header {
overflow: auto;
white-space: nowrap;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enable overflow scroll. Not great on desktop but good on mobile. Let's see how it's received. The alternative (causing wrap) is more annoying since it causes content shift

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This broke select-notifications

image

Comment thread source/refined-github.css
.js-notifications-mark-selected-actions,
.js-notifications-mark-all-actions
):not([hidden]) {
display: contents !important;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was collapsing the space between 1 selected and Done

@fregante
fregante merged commit 5d1bb32 into main Jun 13, 2026
13 checks passed
@fregante
fregante deleted the notifications-unwrap branch June 13, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

notifications-ui - Unwrap "mark all as read/unread" dropdown

2 participants