Skip to content

Commit

Permalink
feat: Move app notification to top of the content (#18130)
Browse files Browse the repository at this point in the history
* feat: Move app notification to top of the content

* change operator for rendering app notification
  • Loading branch information
przemvs authored Oct 9, 2024
1 parent 9b333b7 commit 51e73a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const wrapper: CSSObject = {
left: '50%',
translate: '-50% 0',
transition: 'top 0.3s, opacity 0.3s',
zIndex: '99',
zIndex: '99999',

'body.theme-dark &': {
backgroundColor: 'var(--gray-80)',
Expand Down
5 changes: 5 additions & 0 deletions src/script/util/DebugUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import keyboardjs from 'keyboardjs';
import {$createTextNode, $getRoot, LexicalEditor} from 'lexical';
import {container} from 'tsyringe';

import {showAppNotification} from 'Components/AppNotification';
import {getLogger, Logger} from 'Util/Logger';

import {KEY} from './KeyboardUtil';
Expand Down Expand Up @@ -581,4 +582,8 @@ export class DebugUtil {
disableForcedErrorReporting() {
return disableForcedErrorReporting();
}

renderAppNotification(message?: string) {
showAppNotification(message || 'Test notification');
}
}

0 comments on commit 51e73a8

Please sign in to comment.