From b676581a6a72a76f8bb5581112a0192fe75ba33b Mon Sep 17 00:00:00 2001 From: Pheuw1 Date: Thu, 16 Mar 2023 14:42:05 +0100 Subject: [PATCH] fron chat --- back/volume/src/users/entity/user.entity.ts | 4 +- front/volume/src/components/Channels.svelte | 47 +++++++++++++++------ 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/back/volume/src/users/entity/user.entity.ts b/back/volume/src/users/entity/user.entity.ts index d1fda87..d374cf7 100644 --- a/back/volume/src/users/entity/user.entity.ts +++ b/back/volume/src/users/entity/user.entity.ts @@ -1,4 +1,4 @@ - Entity, +import { Entity, PrimaryGeneratedColumn, Column, ManyToMany, @@ -24,7 +24,7 @@ export class User { @Column({ select: false, nullable: true }) authToken: string - @Column({ default: false }) + @Column({ default: false }) twoFA: boolean @Column({ default: false, nullable: true }) diff --git a/front/volume/src/components/Channels.svelte b/front/volume/src/components/Channels.svelte index 99eb56e..1e47afd 100644 --- a/front/volume/src/components/Channels.svelte +++ b/front/volume/src/components/Channels.svelte @@ -30,7 +30,7 @@ }); if (res.ok) channels = await res.json(); }; - + let channels: Array = []; onMount(async () => { getChannels() @@ -180,6 +180,7 @@ {#each channels.slice(0, 10) as _channels}
  • {_channels.name} +
    +
  • {/each} {:else}

    No channels available

    @@ -221,6 +223,7 @@ display: flex; justify-content: center; align-items: center; + overflow-x:visible; } .channels { @@ -228,15 +231,15 @@ border: 1px solid #dedede; border-radius: 5px; padding: 1rem; - width: 300px; - display: flex; - flex-direction: column; - overflow: auto; + width: 500px; + overflow-y: scroll; + overflow-x: auto; + max-height: 80%; } h2 { - font-size: 18px; margin-bottom: 1rem; + font-size:xx-large; } p { @@ -252,7 +255,7 @@ margin-bottom: 0.5rem; flex-wrap: wrap; } - + button { background-color: #6b8e23; color: #ffffff; @@ -267,17 +270,23 @@ } select { + color:black; + text-align: center; + margin: 50; width: 100%; - padding: 0.5rem; - border: 1px solid #dedede; - border-radius: 5px; - background-color: #5e5d5d; - font-size: 14px; - margin-bottom: 1rem; + height: 15%; + padding: 10px; + border-radius: 20px; + background: #eee; + border: none; + outline: grey; + display: inline-block; + -webkit-appearance: none; + -moz-appearance: none; appearance: none; cursor: pointer; } - + .button { background-color: #6b8e23; color: #ffffff; @@ -289,4 +298,14 @@ outline: none; width: 100%; } + + span { + width: 100%; + outline: 10%; + margin: 1%; + height: 10%; + font-size: 100%; /* Taille de la police en pourcentage */ + padding: 10px; + top: 2px; + }