Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/app/notifications/NotificationItem.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.notification-item {
.sourcegraph-notification-item {
display: flex;
align-items: flex-start;
justify-content: space-between;
}

.notification-item__content {
.sourcegraph-notification-item__content {
flex: 1;
}

.notification-item__content > :last-child {
.sourcegraph-notification-item__content > :last-child {
margin-bottom: 0;
}

.notification-item__close {
.sourcegraph-notification-item__close {
cursor: pointer;
flex: 0;
font-size: 1.25rem;
Expand All @@ -24,7 +24,7 @@
opacity: 0.7;
}

.notification-item__close:hover,
.notification-item__close:focus {
.sourcegraph-notification-item__close:hover,
.sourcegraph-notification-item__close:focus {
opacity: 1;
}
9 changes: 5 additions & 4 deletions src/app/notifications/NotificationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ export class NotificationItem extends React.PureComponent<Props> {
)
return (
<div
className={`notification-item alert alert-${alertClass(this.props.notification.type)} p-0 ${this.props
.className || ''}`}
className={`sourcegraph-notification-item alert alert-${alertClass(
this.props.notification.type
)} p-0 ${this.props.className || ''}`}
>
<div
className="notification-item__content py-2 pl-2 pr-0"
className="sourcegraph-notification-item__content py-2 pl-2 pr-0"
dangerouslySetInnerHTML={{ __html: markdownHTML }}
/>
<button
type="button"
className="notification-item__close p-2"
className="sourcegraph-notification-item__close p-2"
onClick={this.onDismiss}
aria-label="Close"
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/notifications/Notifications.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.notifications {
.sourcegraph-notifications {
position: fixed;
width: 28rem;
top: 82px;
Expand Down
4 changes: 2 additions & 2 deletions src/app/notifications/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ export class Notifications<S extends ConfigurationSubject, C extends Settings> e

public render(): JSX.Element | null {
return (
<div className="notifications">
<div className="sourcegraph-notifications">
{this.state.notifications.slice(0, Notifications.MAX_RETAIN).map((notification, i) => (
<NotificationItem
key={i}
notification={notification}
onDismiss={this.onDismiss}
className="notifications__notification rounded-0 m-2"
className="sourcegraph-notifications__notification rounded-0 m-2"
/>
))}
</div>
Expand Down