diff --git a/css/_localTrackFileCard.scss b/css/_localTrackFileCard.scss index f9e9f5c..0fe72e3 100644 --- a/css/_localTrackFileCard.scss +++ b/css/_localTrackFileCard.scss @@ -5,57 +5,32 @@ height: fit-content; width: 384px; - .card-header { + //.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; + } + } - padding: unset; + //li:hover { + // cursor: pointer; + // background-color: rgba(15, 15, 15, 0.04); + //} + .card-footer { display: flex; - flex-direction: column; + flex-direction: row; flex-wrap: nowrap; - justify-content: flex-start; + justify-content: space-around; align-items: center; - - >div:first-child { - width: 100%; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-between; - align-items: center; - - border-bottom-style: solid; - border-bottom-width: thin; - - >div { - color: transparent; - } - - >button { - cursor: pointer; - margin-right: 8px; - //color: #7F7F7F; - } - } - >div:first-child:hover { - cursor: grab; - } - >div:first-child:active { - cursor: grabbing; - } - - >div:last-child { - font-size: 1em; - padding: .5rem; - //text-transform: uppercase; - text-align: left; - background-color: white; - } - - //background-color: rgba(15, 15, 15, 0.25); - } - - li:hover { - cursor: pointer; - background-color: rgba(15, 15, 15, 0.04); } } diff --git a/css/app.css b/css/app.css index 0c5bc6a..23de7c1 100644 --- a/css/app.css +++ b/css/app.css @@ -138,46 +138,16 @@ select#igv-app-track-select-modal-select option[disabled] { height: fit-content; width: 384px; } -#igv-local-track-file-card.card .card-header { - padding: unset; - display: flex; - flex-direction: column; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: center; +#igv-local-track-file-card.card li input { + margin-right: 8px; + cursor: pointer; } -#igv-local-track-file-card.card .card-header > div:first-child { - width: 100%; +#igv-local-track-file-card.card .card-footer { display: flex; flex-direction: row; flex-wrap: nowrap; - justify-content: space-between; + justify-content: space-around; align-items: center; - border-bottom-style: solid; - border-bottom-width: thin; -} -#igv-local-track-file-card.card .card-header > div:first-child > div { - color: transparent; -} -#igv-local-track-file-card.card .card-header > div:first-child > button { - cursor: pointer; - margin-right: 8px; -} -#igv-local-track-file-card.card .card-header > div:first-child:hover { - cursor: grab; -} -#igv-local-track-file-card.card .card-header > div:first-child:active { - cursor: grabbing; -} -#igv-local-track-file-card.card .card-header > div:last-child { - font-size: 1em; - padding: 0.5rem; - text-align: left; - background-color: white; -} -#igv-local-track-file-card.card li:hover { - cursor: pointer; - background-color: rgba(15, 15, 15, 0.04); } body { diff --git a/css/app.css.map b/css/app.css.map index bc29da5..be88815 100644 --- a/css/app.css.map +++ b/css/app.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["_panel.scss","_color.scss","_share-modal.scss","_encode.scss","_track-select.scss","_localTrackFileCard.scss","app.scss"],"names":[],"mappings":"AAMA;EACE;EACA;EACA;EAEA;EAEA,OAXuB;EAYvB,QAXwB;EAaxB,cCTmB;EDUnB,kBCNe;EDQf;;AAEA;EAEE;EACA;EACA;EACA;EACA;EAEA;EAEA;EACA;EAEA;;AAEA;EACE;EACA;EACA;EACA;EACA;EAEA;EACA,QAxCmC;EA0CnC,kBCrCa;EDuCb;EACA;;AAEA;EACE;EACA,OCjDU;EDkDV;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;;AE5DR;EAEE,OAJmB;;AAMnB;EACE,aAVkB;EAWlB,WAVgB;EAWhB;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE,OAtBmB;EAuBnB;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EAEA;EAaA;;AAXA;EACE;EACA;;AAIF;EACE;EACA;;;AAMJ;EACE;;;AC3EF;EAEE;EAEA;EACA;EACA;EACA;EACA;;;ACRF;EAEE;;AAEA;EACE;;AAGF;EAGE;;;ACXJ;EACE;EACA;EAEA;EACA;;AAEA;EAEE;EAEA;EACA;EAC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ACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE,OAnTqB;EAoTrB;EACA;;;AAGF;EACE,OAxTmB;EAyTnB,cA1TqB;;;AA6TvB;EACE,kBA9TqB;;;AAiUvB;EACE,kBAjUmB;;;AAoUrB;EACE;;;AAQA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAKJ;EACE;;;AAIF;EACE;EACA;;;AAIF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKF;EACE;;;AAKA;EACE;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;;AAGF;EACE;;;AAIJ;EACE;EACA;;;AAGF;EAEE;IACE;IACA;IAEA;IACA,QAzZoB;IA0ZpB,aA1ZoB;IA4ZpB;IACA;IACA;IACA;IACA;;EAEA;IACE,QAnakB;IAoalB,aApakB;IAqalB;IACA;;EACA;IACE,OA7aa;IA8ab;;EAIJ;IACE,QA9akB;IA+alB,aA/akB;IAgblB;IACA;;EAGF;IACE","file":"app.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["_panel.scss","_color.scss","_share-modal.scss","_encode.scss","_track-select.scss","_localTrackFileCard.scss","app.scss"],"names":[],"mappings":"AAMA;EACE;EACA;EACA;EAEA;EAEA,OAXuB;EAYvB,QAXwB;EAaxB,cCTmB;EDUnB,kBCNe;EDQf;;AAEA;EAEE;EACA;EACA;EACA;EACA;EAEA;EAEA;EACA;EAEA;;AAEA;EACE;EACA;EACA;EACA;EACA;EAEA;EACA,QAxCmC;EA0CnC,kBCrCa;EDuCb;EACA;;AAEA;EACE;EACA,OCjDU;EDkDV;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;;AE5DR;EAEE,OAJmB;;AAMnB;EACE,aAVkB;EAWlB,WAVgB;EAWhB;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE,OAtBmB;EAuBnB;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;;;AA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EA+PpB,aA/PoB;EAgQpB;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAMN;EACE;EAEA,QAtRkC;EAwRlC;;;AAIF;EACE,kBAjSmB;;;AAoSrB;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE,OAnTqB;EAoTrB;EACA;;;AAGF;EACE,OAxTmB;EAyTnB,cA1TqB;;;AA6TvB;EACE,kBA9TqB;;;AAiUvB;EACE,kBAjUmB;;;AAoUrB;EACE;;;AAQA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAKJ;EACE;;;AAIF;EACE;EACA;;;AAIF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKF;EACE;;;AAKA;EACE;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;;AAGF;EACE;;;AAIJ;EACE;EACA;;;AAGF;EAEE;IACE;IACA;IAEA;IACA,QAzZoB;IA0ZpB,aA1ZoB;IA4ZpB;IACA;IACA;IACA;IACA;;EAEA;IACE,QAnakB;IAoalB,aApakB;IAqalB;IACA;;EACA;IACE,OA7aa;IA8ab;;EAIJ;IACE,QA9akB;IA+alB,aA/akB;IAgblB;IACA;;EAGF;IACE","file":"app.css"} \ No newline at end of file diff --git a/js/sessionUtils.js b/js/sessionUtils.js index ae8cd95..d9bc4cd 100644 --- a/js/sessionUtils.js +++ b/js/sessionUtils.js @@ -20,13 +20,8 @@ async function initializeSessionUtilities(browser, $igvMain, initializeDropbox, const sessionLoader = async config => { try { - // config.parentApp = 'igvwebapp' - const trackConfigurations = await browser.loadSession(config) - - // const str = trackConfigurations.map(config => JSON.stringify(config, null, 2)).join('\n') - // console.log(str) - // const localTrackFileNames = trackConfigurations.filter((config) => undefined !== config.file).map(({filename}) => filename) + const trackConfigurations = await browser.loadSession(config) const localTrackFileConfigs = trackConfigurations.filter((config) => undefined !== config.file) @@ -125,61 +120,63 @@ async function createSessionMenu(sessionListDivider, sessionRegistryFile, sessio function presentLocalTrackFileModal(trackFileNamesCard, trackFileNames) { - const html = trackFileNames.map(name => `