Skip to content

Commit

Permalink
console: Position notifications panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Feb 8, 2024
1 parent e71f6f0 commit 9f5cb67
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/webui/components/panel/panel.styl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

.panel
width: 100%
border-radius: $br.xl
border: 1px solid var(--c-border-neutral-light)
background-color: var(--c-bg-neutral-min)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const NotificationsDashboardPanel = () => {
icon="inbox"
buttonTitle={sharedMessages.viewAll}
messageDecorators={totalUnseenNotifications > 0 ? <MessageDecorator /> : undefined}
className={style.notificationPanel}
>
<FetchTable
entity="notifications"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

.notification-panel
height: 26rem
&-title, &-preview
overflow: hidden
text-overflow: ellipsis
Expand Down
4 changes: 3 additions & 1 deletion pkg/webui/console/views/overview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import Breadcrumb from '@ttn-lw/components/breadcrumbs/breadcrumb'

import RequireRequest from '@ttn-lw/lib/components/require-request'

import NotificationsDashboardPanel from '@console/containers/notifications-dashboard-panel'

import sharedMessages from '@ttn-lw/lib/shared-messages'

import { getApplicationsList } from '@console/store/actions/applications'
Expand All @@ -31,7 +33,7 @@ const Overview = () => {
<RequireRequest requestAction={[getApplicationsList(), getGatewaysList()]}>
<div className="grid p-ls-xs3 box-border">
<div className="item-6 m:item-6 l:item-12 s:item-12">
<div style={{ height: '30rem', backgroundColor: 'lightgray' }} />
<NotificationsDashboardPanel />
</div>
<div className="item-6 m:item-6 l:item-12 s:item-12">
<div style={{ height: '30rem', backgroundColor: 'lightgray' }} />
Expand Down

0 comments on commit 9f5cb67

Please sign in to comment.