Skip to content

Commit

Permalink
fix: fix mofile toolbar issue & remove debugLog
Browse files Browse the repository at this point in the history
  • Loading branch information
floydnant committed Nov 25, 2023
1 parent 8303bac commit f7ba363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 2 additions & 9 deletions client-v2/src/app/components/organisms/task/task.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,9 @@
<ng-container
*rxLet="{ isExpanded: isDescriptionExpanded$ | push, isActive: isDescriptionActive$ | push }; let props"
>
<!-- isExpanded: {{ props.isExpanded }}; isActive: {{ props.isActive }} -->
<!-- <div [class.relative]="descriptionEditor.isActive$ | push"> -->
<!-- <div *ngIf="descriptionEditor?.bindEditor(task$, task.id) as bound" [class.relative]="false"> -->
<div *ngIf="props.isExpanded || props.isActive" [class.relative]="false">
<div class="pointer-events-none absolute inset-x-0 bottom-[calc(100%-.5rem)] z-20 flex justify-center px-4">
<!-- <app-toolbar [hide]="!inlineEditor.isActive && !(descriptionEditor.isActive$ | push)"> -->
<app-toolbar [hide]="!props.isActive" cdkMenuBar class="max-w-[70vw] overflow-x-auto">
<!-- <ng-container *ngTemplateOutlet="priorityButton"></ng-container>
<div class="toolbar-separator" role="separator"></div> -->

<div class="absolute inset-x-0 bottom-[calc(100%-.5rem)] z-20 flex justify-center px-4">
<app-toolbar [hide]="!props.isActive" cdkMenuBar class="max-w-full overflow-x-auto sm:max-w-[70vw]">
<app-tt-editor-toolbar
[ttEditor]="descriptionEditor"
[layout]="toolbarLayout$ | push"
Expand Down
2 changes: 0 additions & 2 deletions client-v2/src/app/rich-text-editor/tip-tap-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
takeUntil,
withLatestFrom,
} from 'rxjs'
import { debugObserver } from 'src/app/utils/observable.helpers'
import { CustomEditorEventsStorage } from './editor-features/custom-events.feature'
import { EditorFeatureId } from './editor.types'

Expand Down Expand Up @@ -79,7 +78,6 @@ export class TipTapEditor extends Editor {

input$
.pipe(
debugObserver('input$'),
takeUntil(this.unbind$),
withLatestFrom(this.update$.pipe(startWith(null))),
map(([input, currentState], index) => ({
Expand Down

0 comments on commit f7ba363

Please sign in to comment.