diff --git a/ui/src/elements/ngm-auth.ts b/ui/src/elements/ngm-auth.ts index 93de00d29..7e9eb5dad 100644 --- a/ui/src/elements/ngm-auth.ts +++ b/ui/src/elements/ngm-auth.ts @@ -62,14 +62,13 @@ export class NgmAuth extends LitElementI18n { } readonly render = () => html` -
+
`; static readonly styles = css` - ngm-icon { + div { color: var(--color-bg); background-color: var(--color-main); width: 36px; @@ -80,5 +79,10 @@ export class NgmAuth extends LitElementI18n { align-items: center; cursor: pointer; } + + ngm-icon { + width: 20px; + height: 20px; + } `; } diff --git a/ui/src/icons/i_close.ts b/ui/src/icons/i_close.ts index eed78f254..a0cb0d77f 100644 --- a/ui/src/icons/i_close.ts +++ b/ui/src/icons/i_close.ts @@ -2,6 +2,6 @@ import {html} from 'lit'; export const closeIcon = html` - + `; diff --git a/ui/src/icons/i_dropdown.ts b/ui/src/icons/i_dropdown.ts new file mode 100644 index 000000000..70a32a9a2 --- /dev/null +++ b/ui/src/icons/i_dropdown.ts @@ -0,0 +1,7 @@ +import {html} from 'lit'; + +export const dropdownIcon = html` + + + +`; diff --git a/ui/src/icons/icons.ts b/ui/src/icons/icons.ts index b6ee5805a..cab424ad2 100644 --- a/ui/src/icons/icons.ts +++ b/ui/src/icons/icons.ts @@ -9,11 +9,13 @@ import {userIcon} from './i_user'; import {checkmarkIcon} from './i_checkmark'; import {searchIcon} from './i_search'; import {closeIcon} from './i_close'; +import {dropdownIcon} from './i_dropdown'; export const icons = { checkmark: checkmarkIcon, close: closeIcon, config: configIcon, + dropdown: dropdownIcon, layer: layerIcon, projects: projectsIcon, search: searchIcon, diff --git a/ui/src/ngm-app.ts b/ui/src/ngm-app.ts index 7d97beaa5..6b824260d 100644 --- a/ui/src/ngm-app.ts +++ b/ui/src/ngm-app.ts @@ -1,5 +1,5 @@ import {LitElementI18n} from './i18n'; -import {css, html, PropertyValues} from 'lit'; +import {html, PropertyValues} from 'lit'; import './elements/ngm-side-bar'; import './elements/ngm-full-screen-view'; import './elements/ngm-object-information'; @@ -250,6 +250,8 @@ export class NgmApp extends LitElementI18n { } async firstUpdated() { + this.querySelectorAll('.menu').forEach((it) => $(it).dropdown()); + setTimeout(() => this.determinateLoading = true, 3000); setupI18n(); rewriteParams(); @@ -429,7 +431,7 @@ export class NgmApp extends LitElementI18n {