Pārlūkot izejas kodu

Modif bordure autocomplete

Sangfroid 8 mēneši atpakaļ
vecāks
revīzija
eb75eaae19
2 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. 1 2
      assets/js/addCollectionVanilla.js
  2. 5 1
      assets/styles/app.scss

+ 1 - 2
assets/js/addCollectionVanilla.js

@@ -4,7 +4,6 @@ import { autocomplete } from './autocomplete'
     document
         .querySelectorAll('ul.collection-form li')
         .forEach(item => {
-            console.log(item.querySelector('input').readOnly = true)
             addDeleteLink(item)
         });
 
@@ -28,7 +27,7 @@ import { autocomplete } from './autocomplete'
             /__name__/g,
             collectionHolder.dataset.index
         );
-    
+
         if (path !== '') {
             autocomplete(item, path);
         }

+ 5 - 1
assets/styles/app.scss

@@ -34,7 +34,7 @@ body {
     right: 0;
     width: 100%;
     border-radius: 9px;
-    border-style: solid;
+    border: 1px solid var(--bs-border-color);
     border-top: none;
     list-style-type: none;
     padding-left: 0;
@@ -44,6 +44,10 @@ body {
     color: var(--bs-body-color);
 }
 
+.autocomplete-item {
+    padding-left: 1rem;
+}
+
 .autocomplete-item:active, .selected {
     background-color: $primary;
 }