Browse Source

fron chat

master
Pheuw1 2 years ago
parent
commit
b676581a6a
  1. 2
      back/volume/src/users/entity/user.entity.ts
  2. 41
      front/volume/src/components/Channels.svelte

2
back/volume/src/users/entity/user.entity.ts

@ -1,4 +1,4 @@
Entity, import { Entity,
PrimaryGeneratedColumn, PrimaryGeneratedColumn,
Column, Column,
ManyToMany, ManyToMany,

41
front/volume/src/components/Channels.svelte

@ -180,6 +180,7 @@
{#each channels.slice(0, 10) as _channels} {#each channels.slice(0, 10) as _channels}
<li> <li>
<span>{_channels.name}</span> <span>{_channels.name}</span>
<div style="display:block; margin-right:10%">
<button on:click={() => selectChat(_channels.id)}>🔌</button> <button on:click={() => selectChat(_channels.id)}>🔌</button>
<button <button
on:click={() => removeChannel(_channels.id)} on:click={() => removeChannel(_channels.id)}
@ -189,6 +190,7 @@
<button on:click={() => changePassword(_channels.id)} <button on:click={() => changePassword(_channels.id)}
>Edit Password</button >Edit Password</button
> >
</div>
</li>{/each} </li>{/each}
{:else} {:else}
<p>No channels available</p> <p>No channels available</p>
@ -221,6 +223,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
overflow-x:visible;
} }
.channels { .channels {
@ -228,15 +231,15 @@
border: 1px solid #dedede; border: 1px solid #dedede;
border-radius: 5px; border-radius: 5px;
padding: 1rem; padding: 1rem;
width: 300px; width: 500px;
display: flex; overflow-y: scroll;
flex-direction: column; overflow-x: auto;
overflow: auto; max-height: 80%;
} }
h2 { h2 {
font-size: 18px;
margin-bottom: 1rem; margin-bottom: 1rem;
font-size:xx-large;
} }
p { p {
@ -267,13 +270,19 @@
} }
select { select {
color:black;
text-align: center;
margin: 50;
width: 100%; width: 100%;
padding: 0.5rem; height: 15%;
border: 1px solid #dedede; padding: 10px;
border-radius: 5px; border-radius: 20px;
background-color: #5e5d5d; background: #eee;
font-size: 14px; border: none;
margin-bottom: 1rem; outline: grey;
display: inline-block;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none; appearance: none;
cursor: pointer; cursor: pointer;
} }
@ -289,4 +298,14 @@
outline: none; outline: none;
width: 100%; width: 100%;
} }
span {
width: 100%;
outline: 10%;
margin: 1%;
height: 10%;
font-size: 100%; /* Taille de la police en pourcentage */
padding: 10px;
top: 2px;
}
</style> </style>

Loading…
Cancel
Save