banners: Redesign desktop notifications navbar banner.

As part of the banner redesign project, this commit applies the new
banner styles to the desktop notifications navbar banner.

This commit also acts as a base for the following banner redesign
commits by defining the `banners.ts` module, which now acts as the
centralized module to handle the banner rendering and sets up the
common event listeners.
This commit is contained in:
Sayam Samal
2025-01-17 17:47:36 +05:30
committed by Tim Abbott
parent 32d131ab5a
commit 028e9dc58a
10 changed files with 145 additions and 73 deletions

View File

@@ -4,10 +4,14 @@
</span>
<span class="banner-action-buttons">
{{#each buttons}}
{{> action-button .}}
{{#if this.intent}}
{{> action-button .}}
{{else}}
{{> action-button . intent=../intent}}
{{/if}}
{{/each}}
</span>
{{#if close_button}}
{{> icon-button custom_classes="banner-close-button" icon="close" intent=intent}}
{{> icon-button custom_classes="banner-close-action banner-close-button" icon="close" intent=intent}}
{{/if}}
</div>