1212 --text-white : # ffffff ;
1313 --background-primary : # d9eaea ;
1414 --background-secondary : # fdfdfd ;
15+ --grid-element-min-width : 15rem ;
1516
1617 font-family : sans-serif;
1718 font-size : medium;
@@ -85,15 +86,17 @@ button[disabled|='true'] {
8586 background-color : var (--primary-color );
8687 color : var (--text-white );
8788 width : 100% ;
88- height : 2 rem ;
89+ height : fit-content ;
8990 justify-content : center;
9091}
9192
9293.title {
93- text-overflow : ellipsis;
9494 font-size : large;
9595 font-weight : bold;
9696 display : flex;
97+ margin : 0.375rem ;
98+ flex : 1 0 calc (var (--grid-element-min-width ) - 2 * 0.4rem );
99+ line-break : auto;
97100 align-items : center; /* Vertical centering */
98101 justify-content : center; /* Horizontal centering */
99102 height : 100% ; /* Ensure the div has height */
@@ -150,10 +153,14 @@ button[disabled|='true'] {
150153}
151154
152155.description {
156+ /*flex: 0 1 auto;*/
153157 color : var (--deactivated-color ) !important ;
154- margin : 0.5rem ;
158+ padding : 0.5rem ;
159+ display : inline-block;
155160 text-align : justify;
156- overflow-y : auto;
161+ overflow-x : auto;
162+ height : calc (var (--grid-element-min-width )/ 3 + 1rem );
163+ margin-bottom : var (--margin-around );
157164}
158165
159166.mapping-options {
@@ -176,14 +183,14 @@ button[disabled|='true'] {
176183 grid-auto-columns : min-content;
177184 grid-auto-flow : row;
178185 gap : 1rem ;
179- grid-template-columns : repeat (auto-fit, minmax (20 rem , 1fr ));
186+ grid-template-columns : repeat (auto-fit, minmax (var ( --grid-element-min-width ) , 1fr ));
180187 width : 100% ;
181188 margin : var (--margin-around );
182189 padding-bottom : 0.625rem ;
183190}
184191
185192.cards {
186- flex : 0 0 calc (25 % - var (--padding-around ));
193+ flex : 0 1 calc (20 % - var (--padding-around ));
187194 display : flex;
188195 flex-wrap : wrap;
189196 flex-direction : column;
@@ -195,7 +202,7 @@ button[disabled|='true'] {
195202 border-radius : var (--border-radius );
196203 overflow : hidden;
197204 position : relative;
198- min-width : 18.5rem ;
205+ /* min-width: 18.5rem;*/
199206 /* Added minimum width for better mobile view */
200207 background : var (--background-primary );
201208 box-shadow :
0 commit comments