Skip to content

Commit e751bbe

Browse files
authored
refactor(classroom): make invite code selectable (netless-io#1552)
1 parent 1656e65 commit e751bbe

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/flat-components/src/components/RoomDetailPage/RoomDetailBody/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const RoomDetailBody = observer<RoomDetailBodyProps>(function RoomDetailB
5959
<SVGModeLecture />
6060
<span>{t("room-uuid")}</span>
6161
</td>
62-
<td className="room-detail-body-content-right">
62+
<td className="room-detail-body-content-right room-detail-body-selectable">
6363
{formatInviteCode(uuid, inviteCode)}
6464
</td>
6565
</tr>

packages/flat-components/src/components/RoomDetailPage/RoomDetailBody/style.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
padding-bottom: 16px;
3232
}
3333

34+
.room-detail-body-selectable {
35+
user-select: text;
36+
}
37+
3438
.flat-color-scheme-dark {
3539
.room-detail-body-content-left {
3640
> span {

0 commit comments

Comments
 (0)