Skip to content

Commit 07a921d

Browse files
committed
style-mark
1 parent 57edd7f commit 07a921d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/comments/DocsThreadStore.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,11 @@ export class DocsThreadStore extends ThreadStore {
266266
}
267267

268268
const serverThread = (await response.json()) as ServerThread;
269+
269270
const td = serverThreadToThreadData(serverThread);
271+
272+
console.log('serverThread', td);
273+
270274
this.upsertThreadData(td);
271275
this.notifySubscribers();
272276
}

src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,11 @@ export const cssEditor = (readonly: boolean, canSeeComment: boolean) => css`
128128
/**
129129
* Comments
130130
*/
131-
${!canSeeComment &&
132-
css`
133-
.bn-thread-mark,
134-
.bn-thread-mark-selected {
135-
background: transparent;
136-
color: var(--c--theme--colors--greyscale-700);
137-
}
138-
`}
131+
.bn-thread-mark:not([data-orphan='true']),
132+
.bn-thread-mark-selected:not([data-orphan='true']) {
133+
background: ${canSeeComment ? '#F4D261' : 'transparent'};
134+
color: var(--c--theme--colors--greyscale-700);
135+
}
139136
}
140137
141138
& .bn-block-outer:not(:first-child) {

0 commit comments

Comments
 (0)