Commit b44b7588 authored by Arnaud Bey's avatar Arnaud Bey

make ui a bit more responsive

parent cef1d26a
......@@ -81,11 +81,6 @@ class Square
*/
private $textColor = "#000000";
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $width = 3;
/**
* @ORM\Column(type="integer", nullable=true)
*/
......@@ -263,18 +258,6 @@ class Square
return $this;
}
public function getWidth(): ?int
{
return $this->width;
}
public function setWidth(?int $width): self
{
$this->width = $width;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
......
......@@ -80,7 +80,6 @@ class SquareType extends AbstractType
'label' => 'Couleur du texte',
'required' => false,
])
->add('width')
->add('save', SubmitType::class, array(
'label' => 'Sauvegarder',
))
......
{% if elan %}
<div data-toggle="modal" data-target="#square-elan" class="col-6">
<div data-toggle="modal" data-target="#square-elan" class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="card clickable" style="background:rgba(255, 255, 255, 0.7);">
<div class="card-body" style="color:rgba(0, 0, 0);">
<h1 class="card-title text-center">{{elan.title}}</h1>
......
<div data-toggle="modal" data-target="#square-{{ square.id }}" class="col-{{ square.width }}">
<div data-toggle="modal" data-target="#square-{{ square.id }}" class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12">
<div class="card clickable" style="background:rgba({{ square.color|hex2rgb(0.7) }});">
<div class="card-body" style="color:rgba({{ square.textColor|hex2rgb(1) }});">
<h4 class="card-title text-center">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment