Skip to content

Commit

Permalink
css'ing
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Jan 24, 2024
1 parent fc13606 commit d279895
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
15 changes: 0 additions & 15 deletions css/_localTrackFileCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,12 @@
height: fit-content;
width: 384px;

//.card-header {
// padding: unset;
// display: flex;
// flex-direction: column;
// flex-wrap: nowrap;
// justify-content: flex-start;
// align-items: center;
//}

li {
input {
margin-right: 8px;
cursor: pointer;
}
}

//li:hover {
// cursor: pointer;
// background-color: rgba(15, 15, 15, 0.04);
//}

.card-footer {
display: flex;
flex-direction: row;
Expand Down
1 change: 0 additions & 1 deletion css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/app.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions js/sessionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,10 @@ function presentLocalTrackFileModal(trackFileNamesCard, trackFileNames) {
const parent = trackFileNamesCard.querySelector('.list-group')
parent.innerHTML = ''

const html = trackFileNames.map(name =>`<li class="list-group-item" data-filename="${ name }"><input type="checkbox">${ name }</li>`).join('')
const html = trackFileNames.map(name =>`<li class="list-group-item" data-filename="${ name }"><input type="checkbox" disabled>${ name }</li>`).join('')
const fragment = document.createRange().createContextualFragment(html)
parent.appendChild(fragment)

const strings = trackFileNames.map(name =>`<li class="list-group-item"><input type="checkbox">${ name }</li>`)

trackFileNamesCard.style.left = `128px`
trackFileNamesCard.style.top = `128px`

Expand Down Expand Up @@ -192,6 +190,7 @@ function createLocalTrackFileCard(parentElement, id, browser){
console.log(`Retrieved file ${ name } is a local session file`)
listItemElement.style.backgroundColor = 'pink'
const inputElement = listItemElement.querySelector('input')
inputElement.disabled = false
inputElement.checked = true
} else {
console.log(`Retrieved file ${ name } is NOT a local session file`)
Expand Down

0 comments on commit d279895

Please sign in to comment.