styling fake inputs of csc selector

This commit is contained in:
Tykayn 2025-10-17 17:32:46 +02:00 committed by tykayn
parent 38c12281d3
commit 3833ef77f3
12 changed files with 53 additions and 29 deletions

View file

@ -89,6 +89,7 @@
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 8px; border-radius: 8px;
margin-right: 10px;
} }
app-copy button.copy { app-copy button.copy {

View file

@ -67,7 +67,7 @@
.chips-listing { .chips-listing {
display: flex; display: flex;
position: absolute; position: absolute;
top: 560px; top: 595px;
margin-top: 16px; margin-top: 16px;
border-radius: 4px; border-radius: 4px;
background: variables.$csc-filters-box-color; background: variables.$csc-filters-box-color;

View file

@ -199,8 +199,16 @@
.placeholder, .fake-input { .placeholder, .fake-input {
border: solid 1px grey; border: solid 1px grey;
padding: 16px; border-radius: 8px;
border-radius: 6px; background-color: white;
padding: 10px 40px;
width: 100%;
height: 42px;
overflow: hidden;
color: var(--color-text-secondary, #525668);
text-overflow: ellipsis;
font-size: var(--Font-Base, 14px);
.is-disabled & { .is-disabled & {
color: grey; color: grey;

BIN
sae-csc/public/chatbot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -9,11 +9,18 @@
font-size: 16px; font-size: 16px;
line-height: 140%; line-height: 140%;
color: #000;
font-family: Barlow;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 140%; /* 22.4px */
} }
sae-bot-talks { sae-bot-talks {
top: -50px; top: -68px;
left: 67px; left: 10px;
position: relative; position: relative;
} }
} }
@ -34,6 +41,8 @@
#translation_request { #translation_request {
margin-bottom: 80px;
.helper { .helper {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View file

@ -59,7 +59,7 @@
<main> <main>
<section class="padded-section"> <section class="listing">
<div class="row-bot-talks"> <div class="row-bot-talks">
<sae-bot-talks <sae-bot-talks
[appState]="appState" [appState]="appState"

View file

@ -15,6 +15,8 @@
<div class="fixed-navigation"> <div class="fixed-navigation">
<div class="container-fixed">
<sae-m-button routerLink="/similar-cases" <sae-m-button routerLink="/similar-cases"
label="Search similar cases" label="Search similar cases"
inconPosition="right" inconPosition="right"
@ -24,15 +26,7 @@
icon="arrow-right-line" icon="arrow-right-line"
> </sae-m-button> > </sae-m-button>
<!-- <a class="next-step" routerLink="/similar-cases">--> </div>
<!-- <span class="label">-->
<!-- Search similar cases-->
<!-- </span>-->
<!-- <span class="pipe">-->
<!-- |-->
<!-- </span>-->
<!-- <i class="ri-arrow-right-line"></i>-->
<!-- </a>-->
</div> </div>
} }

View file

@ -1,20 +1,23 @@
<div class="translate-texts is-{{disabled? 'disabled' : 'enabled'}} {{fromTextFocused? 'is-focused' : ''}} "> <div class="translate-texts is-{{disabled? 'disabled' : 'enabled'}} {{fromTextFocused? 'is-focused' : ''}} ">
<!-- showFileUploadButton :-->
<!-- {{ showFileUploadButton }}-->
<div class="{{!researchLaunched? 'has-shadow' : ''}}" id="fromText"> <div class="{{!researchLaunched? 'has-shadow' : ''}}" id="fromText">
@if (!fileIsUploaded || !appState.fromText.length || !fromTextFocused) { @if (!fileIsUploaded || !appState.fromText.length || !fromTextFocused) {
<!-- @if (appState.fromText.length == 0) {--> @if (showFileUploadButton) {
<button (click)="clickFileUpload(fileUpload)" class=" click-file-upload is-outlined"> <button (click)="clickFileUpload(fileUpload)" class=" click-file-upload is-outlined">
<span class="label"> <span class="label">
Upload .csv file Upload .csv file
</span> </span>
<i class="ri-upload-cloud-2-line"></i> <i class="ri-upload-cloud-2-line"></i>
</button> </button>
<!-- }--> }
<!-- hidden text input--> <!-- hidden text input-->
<input #fileUpload <input #fileUpload
(blur)="showFileUploadButton = !showFileUploadButton"
(change)="onFileSelected($event)" (change)="onFileSelected($event)"
(focus)="showFileUploadButton = !showFileUploadButton"
accept=".csv" class="is-outlined" id="fileUploadTranslator" accept=".csv" class="is-outlined" id="fileUploadTranslator"
type="file"> type="file">
} }

View file

@ -12,6 +12,7 @@ import {ActionTypes, StateInterface} from './../../redux/reducers';
}) })
export class TranslateTexts { export class TranslateTexts {
public disabled: boolean = false; public disabled: boolean = false;
public showFileUploadButton: boolean = true;
public researchLaunched: boolean = false; public researchLaunched: boolean = false;
public fromText: string = ''; public fromText: string = '';
public toText: string = 'résumé ici' public toText: string = 'résumé ici'

View file

@ -52,7 +52,7 @@ body {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
padding: 16px 64px 16px 1181px; padding: 16px 64px;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
background: white; background: white;
@ -61,5 +61,11 @@ body {
box-shadow: 0 -10px 20px 0 rgba(30, 31, 34, 0.05); box-shadow: 0 -10px 20px 0 rgba(30, 31, 34, 0.05);
.container-fixed {
margin: 0 auto;
width: 1330px;
text-align: right;
}
} }

View file

@ -49,7 +49,4 @@
} }
} }
.bot-avatar {
background: transparent url('/public/chatbot.png') center center no-repeat;
}
} }

View file

@ -1,4 +1,9 @@
@use "app/styles/pages/main.scss"; @use "app/styles/pages/main.scss";
@use "app/styles/pages/similar-cases.scss"; @use "app/styles/pages/similar-cases.scss";
@use "app/styles/pages/admin.scss"; @use "app/styles/pages/admin.scss";
.bot-avatar {
background: transparent url('public/chatbot.png') center center no-repeat !important;
background-size: contain;
}