From 0d4229645235eb4431566aaa3644e771cf3127bf Mon Sep 17 00:00:00 2001 From: san Date: Mon, 7 Dec 2020 06:46:07 +0100 Subject: [PATCH] [FEATURE] Add logout link --- .../src/app/header/header.component.css | 12 ++++---- .../src/app/header/header.component.html | 13 +++++---- .../src/app/header/header.component.ts | 11 -------- .../src/app/home/home.component.html | 3 ++ .../src/app/home/home.component.spec.ts | 28 +++++++++++++++++++ .../referenda/src/app/home/home.component.ts | 18 ++++++++++++ 6 files changed, 63 insertions(+), 22 deletions(-) create mode 100644 frontend/referenda/src/app/home/home.component.spec.ts diff --git a/frontend/referenda/src/app/header/header.component.css b/frontend/referenda/src/app/header/header.component.css index 85b9e5a..b6687c0 100644 --- a/frontend/referenda/src/app/header/header.component.css +++ b/frontend/referenda/src/app/header/header.component.css @@ -51,37 +51,37 @@ .votaciones { width: 111px; - left: calc(50% - 111px/2 - 82.5px); } .resultados { width: 111px; - left: calc(50% - 111px/2 + 28.5px); } .delegar { width: 134px; - left: calc(50% - 134px/2 + 151px); } .partidos { width: 93px; - left: calc(50% - 93px/2 + 264.5px); } .estadisticas { width: 121px; - left: calc(50% - 121px/2 + 371.5px); } .sesion { + position: relative; width: 160px; - left: calc(50% - 96px/2 + 544px); + left: -2px; } .vertical-line { + position: relative; border-left: thick solid #FFF; border-left-width: 1px; + padding: 10px 0 10px 0; + margin: 10px 0 10px 0; + left: -1px; } a { diff --git a/frontend/referenda/src/app/header/header.component.html b/frontend/referenda/src/app/header/header.component.html index c5b08bb..96b6999 100644 --- a/frontend/referenda/src/app/header/header.component.html +++ b/frontend/referenda/src/app/header/header.component.html @@ -15,10 +15,12 @@ [ngClass]="{active: section==='parties'}" (click)="section='parties';">PARTIDOS ESTADÍSTICAS -
- {{currentUser.username}} - MI SESIÓN -