@@ -108,7 +108,7 @@ interface StyledModalRowProps {
108108
109109export const StyledModalRow = styled . div < StyledModalRowProps > `
110110 display: flex;
111- flex-direction: column;
111+ flex-direction: column;
112112 align-items: center;
113113
114114 & select,
@@ -208,6 +208,7 @@ const handleValid = (p: StyledModalInputProps) => {
208208
209209export const StyledModalInput = styled . div < StyledModalInputProps > `
210210 position: relative;
211+ width: 80%;
211212
212213 & label {
213214 position: absolute;
@@ -276,8 +277,94 @@ export const StyledModalInput = styled.div<StyledModalInputProps>`
276277 ${ handleValid }
277278 }
278279
279- .bt-modal-complex-input-indications {
280- color: var(--input-placeholder-text) ;
280+ & div {
281+ color: ${ ( p ) => p . placeholderColor ?? primaryColor } ;
281282 font-size: 0.7rem;
283+ margin: 5px;
284+ }
285+ ` ;
286+
287+ interface StyledModalEditableListProps {
288+ color ?: string ;
289+ scrollBarColor ?: string ;
290+ bgColor ?: string ;
291+ entryColor ?: string ;
292+ hoverColor ?: string ;
293+ deleteColor ?: string ;
294+ roundness ?: number ;
295+ }
296+
297+ export const StyledModalEditableList = styled . ul < StyledModalEditableListProps > `
298+ display: flex;
299+ flex-direction: column;
300+ align-items: center;
301+ padding: 0px;
302+ overflow-y: auto;
303+ max-height: 60vh;
304+ width: 100%;
305+
306+ ::-webkit-scrollbar {
307+ width: 5px;
308+ }
309+
310+ ::-webkit-scrollbar-track {
311+ box-shadow: inset 0 0 5px ${ ( p ) => p . scrollBarColor ?? primaryColor } ;
312+ border-radius: ${ ( p ) => p . roundness ?? 1 } px;
313+ }
314+
315+ ::-webkit-scrollbar-thumb {
316+ background: ${ ( p ) => p . scrollBarColor ?? primaryColor } ;
317+ border-radius: ${ ( p ) => p . roundness ?? 1 } px;
318+ }
319+
320+ & div {
321+ width: 90%;
322+ height: 3rem;
323+ min-height: 3rem;
324+ background-color: ${ ( p ) => p . entryColor ?? primaryColor } ;
325+ padding: 5px;
326+ align-content: center;
327+ color: ${ ( p ) => p . color ?? primaryColor } ;
328+ display: grid;
329+ grid-gap: 5px;
330+ grid-template-columns: auto 20px;
331+
332+ &:hover {
333+ background-color: ${ ( p ) => p . hoverColor ?? primaryColor } ;
334+
335+ & svg {
336+ visibility: visible;
337+ }
338+ }
339+
340+ & label {
341+ background-color: transparent !important;
342+ margin-bottom: 0px !important;
343+ }
344+
345+ & svg {
346+ height: 100%;
347+ opacity: 0.4;
348+ width: 16px;
349+ height: 16px;
350+ padding: 2px;
351+ border-radius: ${ ( p ) => p . roundness ?? 1 } px;
352+ background-color: ${ ( p ) => p . deleteColor ?? primaryColor } ;
353+ visibility: hidden;
354+
355+ &:hover {
356+ opacity: 0.8;
357+ }
358+ }
359+ }
360+
361+ & div:first-of-type {
362+ border-top-right-radius: 5px;
363+ border-top-left-radius: 5px;
364+ }
365+
366+ & div:last-of-type {
367+ border-bottom-right-radius: 5px;
368+ border-bottom-left-radius: 5px;
282369 }
283370` ;
0 commit comments