Skip to content
Snippets Groups Projects
Unverified Commit c4926f6d authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #803 from HumanBrainProject/bugfix_uiIssues

Bugfix UI issues
parents 382a962f e1af8b3b
No related branches found
No related tags found
No related merge requests found
......@@ -195,6 +195,7 @@ export class NehubaContainer implements OnInit, OnChanges, OnDestroy {
public disableOctantRemoval$: Observable<{ message?: string, mode: boolean }>
public handleViewerLoadedEvent(flag: boolean){
console.log('viewer laoded ev', flag)
this.viewerLoaded = flag
this.nehubaViewerLoaded.emit(flag)
}
......@@ -468,6 +469,20 @@ export class NehubaContainer implements OnInit, OnChanges, OnDestroy {
? state.layers?.findIndex(l => l.mixability === 'nonmixable') >= 0
: false),
)
/**
* fixes
* https://github.com/HumanBrainProject/interactive-viewer/issues/800
*/
this.subscriptions.push(
this.nehubaViewerLoaded.pipe(
debounceTime(500),
filter(v => !v),
).subscribe(() => {
this.matDrawerMain.close()
this.matDrawerMinor.close()
})
)
}
public useMobileUI$: Observable<boolean>
......
......@@ -39,7 +39,7 @@ export class RegionBase {
const rgb = this._region.rgb || (this._region.labelIndex && intToRgb(Number(this._region.labelIndex))) || [255, 200, 200]
this.rgbString = `rgb(${rgb.join(',')})`
const [_h, _s, l] = rgbToHsl(...rgb)
this.rgbDarkmode = l < 0.5
this.rgbDarkmode = l < 0.4
}
get region(){
......
......@@ -13,7 +13,7 @@
</mat-card-title>
<!-- subtitle on what it is -->
<mat-card-subtitle class="d-inline-flex align-items-center">
<mat-card-subtitle class="d-inline-flex align-items-center flex-wrap">
<mat-icon fontSet="fas" fontIcon="fa-brain"></mat-icon>
<span>
Brain region
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment