Skip to content

Commit 1f3566b

Browse files
committed
feat: update user page
1 parent f74edf9 commit 1f3566b

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

admin.html

+9-7
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,18 @@ <h3 class="title">
7171
<div class="avatar">
7272
<textarea id="textarea_field" x-model="shareText" style="min-height: 7em;" class="nes-textarea"></textarea>
7373

74-
<div class="columns is-desktop">
74+
<div class="columns is-desktop" style="padding-top: 25px">
7575
<div class="column is-two-fifths">
76-
<button class="nes-btn is-primary" type="button" x-on:click="copyLink">
77-
Copy & Share
78-
</button>
76+
<div style="display: flex; text-align: center;">
77+
<button class="nes-btn is-primary" type="button" x-on:click="copyLink">
78+
Copy & Share
79+
</button>
80+
<button class="nes-btn is-success" type="button" x-on:click="loginAsAdmin">
81+
Log in to the room as Administrator
82+
</button>
83+
</div>
7984
</div>
8085
</div>
81-
<button class="nes-btn is-success" type="button" x-on:click="loginAsAdmin">
82-
Log in to the room as Administrator
83-
</button>
8486
</div>
8587
</div>
8688
<!-- share end -->

index.html

+9-12
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ <h3 class="title">
8484
<div class="column is-one-quarter is-desktop">
8585
<div class="user">
8686
<div class="nes-avatar is-rounded is-large"
87-
style="background-color: #ffc75f;text-align: center;overflow: hidden;line-height: 64px;font-size: 20px;"
87+
style="background-color: #ffc75f;text-align: center;overflow: hidden;line-height: 64px;font-size: 20px; margin: 0 auto; width: 74px; height: 74px;"
8888
x-text="$truncate(item.nickname,2,'')" :title="item.nickname"></div>
89-
<span>
89+
<div style="text-align: center; word-break: break-all;">
9090
<span class="username" x-bind:class="{ 'nes-text is-primary': item.status }"
91-
x-text="$truncate(item.nickname,5)" @click="userControl(item)"></span>
92-
</span>
91+
x-text="$truncate(item.nickname,15)" @click="userControl(item)"></span>
92+
</div>
9393
</div>
9494
</div>
9595
</template>
@@ -105,11 +105,12 @@ <h3 class="title">
105105
<div class="column is-one-quarter is-desktop">
106106
<div class="user">
107107
<div class="nes-avatar is-rounded is-large"
108-
style="background-color: #5eaaa8;text-align: center;overflow: hidden;line-height: 64px;font-size: 20px;"
108+
style="background-color: #5eaaa8;text-align: center;overflow: hidden;line-height: 64px;font-size: 20px; margin: 0 auto; width: 74px; height: 74px;"
109109
x-text="$truncate(item.nickname,2,'')"></div>
110-
<span class="username" x-text="$truncate(item.nickname,5)" @click="userControl(item)">
111-
112-
</span>
110+
<div style="text-align: center; word-break: break-all;">
111+
<span class="username" x-text="$truncate(item.nickname,15)" @click="userControl(item)">
112+
</span>
113+
</div>
113114
</div>
114115
</div>
115116
</template>
@@ -133,8 +134,6 @@ <h3 class="title">
133134
Leave Room
134135
</button>
135136
</div>
136-
</div>
137-
<div style="display: flex;">
138137
<div class="column" x-show="isAdmin || isHost">
139138
<button class="nes-btn" x-text="rtcEnable?'Mute':'Unmute'" type="button" @click="muteMySelf">
140139
Mute Myself
@@ -162,8 +161,6 @@ <h3 class="title">
162161
<button type="button" @click="adminSwitch(selectUser);selectUser={}" class="nes-btn is-warning"
163162
style="margin: 10px 15px;" x-show="selectUser.role!='guest'"
164163
x-text="selectUser.role=='admin'?'↓ Host':'↑ Admin'"></button>
165-
</div>
166-
<div style="display: flex; text-align: center;">
167164
<button type="button" class="nes-btn is-warning" style="margin: 10px 15px;"
168165
x-show="selectUser.role!='admin'" @click="makePeopleBeHost(selectUser);selectUser={}"
169166
x-text="selectUser.role=='host'?'↓ Audience':'↑ Host'"></button>

0 commit comments

Comments
 (0)