@@ -206,22 +206,26 @@ defmodule LiveExWebRTC.Publisher do
206
206
< div class = "w-full flex flex-col gap-4 " >
207
207
< div
208
208
id = "lex-media-devices-wrapper "
209
- phx-click = {
210
- Phoenix.LiveView.JS . toggle_class ( "hidden" , to: "#lex-media-devices" )
211
- |> Phoenix.LiveView.JS . toggle_class ( "rotate-180" ,
212
- to: "#lex-media-devices-wrapper .chevron"
213
- )
214
- }
215
209
phx-update = "ignore "
216
- class = "px-4 py-3 cursor-pointer bg-brand/10 rounded-md border border-brand/30 "
210
+ class = "cursor-pointer bg-brand/10 rounded-md border border-brand/30 "
217
211
>
218
- < div class = "flex items-center justify-between " >
219
- < div class = "font-bold text-[#0d0d0d] py-2.5 " > Devices</ div >
212
+ < div
213
+ phx-click = {
214
+ Phoenix.LiveView.JS . toggle_class ( "hidden" , to: "#lex-media-devices" )
215
+ |> Phoenix.LiveView.JS . toggle_class ( "rotate-180" ,
216
+ to: "#lex-media-devices-wrapper .chevron"
217
+ )
218
+ }
219
+ class = "px-4 py-3 flex items-center justify-between "
220
+ >
221
+ < div class = "font-bold text-[#0d0d0d] py-2.5 " >
222
+ Devices
223
+ </ div >
220
224
< div class = "chevron transition-all duration-300 " >
221
225
< . icon name = "hero-chevron-down " />
222
226
</ div >
223
227
</ div >
224
- < div id = "lex-media-devices " class = "hidden text-[#606060] flex flex-col gap-6 py-2.5 " >
228
+ < div id = "lex-media-devices " class = "hidden text-[#606060] flex flex-col gap-6 px-4 pb-3 " >
225
229
< div class = "flex gap-2.5 items-center " >
226
230
< label for = "lex-audio-devices " class = "" > Audio Device</ label >
227
231
< select
@@ -242,22 +246,24 @@ defmodule LiveExWebRTC.Publisher do
242
246
</ div >
243
247
< div
244
248
id = "lex-audio-settings-wrapper "
245
- phx-click = {
246
- Phoenix.LiveView.JS . toggle_class ( "hidden" , to: "#lex-audio-settings" )
247
- |> Phoenix.LiveView.JS . toggle_class ( "rotate-180" ,
248
- to: "#lex-audio-settings-wrapper .chevron"
249
- )
250
- }
251
249
phx-update = "ignore "
252
- class = "px-4 py-3 cursor-pointer bg-brand/10 rounded-md border border-brand/30 "
250
+ class = "cursor-pointer bg-brand/10 rounded-md border border-brand/30 "
253
251
>
254
- < div class = "flex items-center justify-between " >
252
+ < div
253
+ phx-click = {
254
+ Phoenix.LiveView.JS . toggle_class ( "hidden" , to: "#lex-audio-settings" )
255
+ |> Phoenix.LiveView.JS . toggle_class ( "rotate-180" ,
256
+ to: "#lex-audio-settings-wrapper .chevron"
257
+ )
258
+ }
259
+ class = "px-4 py-3 flex items-center justify-between "
260
+ >
255
261
< div class = "font-bold text-[#0d0d0d] py-2.5 " > Audio Settings</ div >
256
262
< div class = "chevron transition-all duration-300 " >
257
263
< . icon name = "hero-chevron-down " />
258
264
</ div >
259
265
</ div >
260
- < div id = "lex-audio-settings " class = "hidden text-[#606060] flex flex-col gap-6 py-2.5 " >
266
+ < div id = "lex-audio-settings " class = "hidden text-[#606060] flex flex-col gap-6 px-4 pb-3 " >
261
267
< div class = "flex gap-2.5 items-center " >
262
268
< label for = "lex-echo-cancellation " > Echo Cancellation</ label >
263
269
< input type = "checkbox " id = "lex-echo-cancellation " class = "rounded-full " checked />
@@ -281,26 +287,27 @@ defmodule LiveExWebRTC.Publisher do
281
287
</ div >
282
288
< div
283
289
id = "lex-video-settings-wrapper "
284
- phx-click = {
285
- Phoenix.LiveView.JS . toggle_class ( "hidden" ,
286
- to: "#lex-video-settings"
287
- )
288
- |> Phoenix.LiveView.JS . toggle_class ( "rotate-180" ,
289
- to: "#lex-video-settings-wrapper .chevron"
290
- )
291
- }
292
- phx-update = "ignore "
293
- class = "px-4 py-3 cursor-pointer bg-brand/10 rounded-md border border-brand/30 "
290
+ class = "cursor-pointer bg-brand/10 rounded-md border border-brand/30 "
294
291
>
295
- < div class = "flex items-center justify-between " >
292
+ < div
293
+ phx-click = {
294
+ Phoenix.LiveView.JS . toggle_class ( "hidden" ,
295
+ to: "#lex-video-settings"
296
+ )
297
+ |> Phoenix.LiveView.JS . toggle_class ( "rotate-180" ,
298
+ to: "#lex-video-settings-wrapper .chevron"
299
+ )
300
+ }
301
+ class = "px-4 py-3 flex items-center justify-between "
302
+ >
296
303
< div class = "font-bold text-[#0d0d0d] py-2.5 " > Video Settings</ div >
297
304
< div class = "chevron transition-all duration-300 " >
298
305
< . icon name = "hero-chevron-down " />
299
306
</ div >
300
307
</ div >
301
308
< div
302
309
id = "lex-video-settings "
303
- class = "hidden transition-all duration-700 text-[#606060] flex flex-col gap-6 py-2.5 "
310
+ class = "hidden transition-all duration-700 text-[#606060] flex flex-col gap-6 px-4 pb-3 "
304
311
>
305
312
< div id = "lex-resolution " class = "flex gap-2.5 items-center " >
306
313
< label for = "lex-width " > Width</ label >
@@ -327,6 +334,13 @@ defmodule LiveExWebRTC.Publisher do
327
334
class = "rounded-lg disabled:text-gray-400 disabled:border-gray-400 focus:border-brand focus:outline-none focus:ring-0 "
328
335
/>
329
336
</ div >
337
+ < button
338
+ id = "lex-video-apply-button "
339
+ class = "rounded-lg px-10 py-2.5 bg-brand disabled:bg-brand/50 hover:bg-brand/90 text-white font-bold "
340
+ disabled
341
+ >
342
+ Apply
343
+ </ button >
330
344
< div class = "flex gap-2.5 items-center " >
331
345
< label for = "lex-bitrate " > Max Bitrate (kbps)</ label >
332
346
< input
@@ -336,13 +350,6 @@ defmodule LiveExWebRTC.Publisher do
336
350
class = "rounded-lg disabled:text-gray-400 disabled:border-gray-400 focus:border-brand focus:outline-none focus:ring-0 "
337
351
/>
338
352
</ div >
339
- < button
340
- id = "lex-video-apply-button "
341
- class = "rounded-lg px-10 py-2.5 bg-brand disabled:bg-brand/50 hover:bg-brand/90 text-white font-bold "
342
- disabled
343
- >
344
- Apply
345
- </ button >
346
353
< . form for = { @ publisher . form } phx-change = "change_simulcast " phx-update = "replace " >
347
354
< . input type = "checkbox " field = { @ publisher . form [ :simulcast ] } label = "Simulcast " />
348
355
</ . form >
0 commit comments