This commit is contained in:
counterweight 2025-04-10 08:56:49 +02:00
parent fa0b56d2a6
commit d836c67c58
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 2 additions and 7 deletions

View file

@ -221,7 +221,7 @@
font-size: 0.9em;
}
#create-offer-controls {
.create-offer-controls {
text-align: center;
overflow-y: auto;
max-height: 800px;

View file

@ -14,7 +14,6 @@ const PopupNotification = require('../components/PopupNotification');
const offerService = require('../services/offerService');
class CreateOfferModal {
// Stop relying on IDs
constructor({ parentElement, onCreationCallback, offerService }) {
this.element = null;
this.parentElement = parentElement;
@ -35,15 +34,13 @@ class CreateOfferModal {
render() {
const modalRoot = document.createElement('div');
this.element = modalRoot;
modalRoot.id = 'create-offer-modal-root';
modalRoot.className = 'full-screen-modal-background';
const modal = document.createElement('div');
modal.className = 'full-screen-modal';
modal.id = 'create-offer-root';
const controls = document.createElement('div');
controls.id = 'create-offer-controls';
controls.className = 'create-offer-controls';
const title = document.createElement('h2');
title.textContent = 'Añade los detalles de tu oferta';
@ -94,7 +91,6 @@ class CreateOfferModal {
});
const amountDiv = document.createElement('div');
amountDiv.id = 'amount-area';
amountDiv.className = 'create-offer-step';
const amountHeading = document.createElement('h3');
amountHeading.textContent = '¿Cuánto?';
@ -334,7 +330,6 @@ function offersPage() {
tradeDescDiv.append(youBuyData);
const youSellText = document.createElement('p');
youSellText.id = 'you-sell-title';
youSellText.classList.add('offer-card-content-title');
youSellText.innerText = 'Vendes';
tradeDescDiv.append(youSellText);