Skip to content

Commit

Permalink
refactor(flat-pages): hide avatars scroll handle if avatars hidden (#…
Browse files Browse the repository at this point in the history
…1927)

- refactor(flat-components): update chat panel styles
- refactor(flat-components): update users panel switch size
  • Loading branch information
hyrious authored May 10, 2023
1 parent 318b938 commit 134cb92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/flat-components/src/components/ChatPanel/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
font-size: 12px;
font-weight: 400;
color: var(--text);
cursor: pointer;
user-select: none;
}

.flat-color-scheme-dark {
Expand Down
2 changes: 2 additions & 0 deletions packages/flat-components/src/components/UsersPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,15 @@ const Row = /* @__PURE__ */ observer(function Row({
<Switch
checked={user.hasLeft || user.isSpeak}
disabled={!(isCreator || (isSelf && user.isSpeak))}
size="small"
onChange={checked => onStaging?.(user.userUUID, checked)}
/>
</td>
<td>
<Switch
checked={user.wbOperate}
disabled={!(isCreator || (isSelf && user.wbOperate))}
size="small"
onChange={checked => onWhiteboard?.(user.userUUID, checked)}
/>
</td>
Expand Down
1 change: 1 addition & 0 deletions packages/flat-pages/src/SmallClassPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const SmallClassPage = withClassroomStore<SmallClassPageProps>(
className={classNames("small-class-scroll-handles", {
active: isScrollable,
})}
hidden={!classroomStore.isAvatarsVisible()}
>
<button
className="small-class-scroll-handle is-left"
Expand Down

0 comments on commit 134cb92

Please sign in to comment.