Skip to content

Commit

Permalink
fix(links): config panel layout
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Oct 8, 2021
1 parent 3e0324a commit 0d750f0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
11 changes: 8 additions & 3 deletions src/plugins/links-gl/ConfigPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
.config-panel

//- time-of-day slider
.panel-item(v-if="useSlider")
p: b {{ $t('timeOfDay') }}
.panel-item.expand(v-if="useSlider")
p: b {{ $t('timeOfDay') }}:
|   {{ header[activeColumn] }}

button.button.full-width.is-warning.is-loading(v-if="activeColumn < 0"
aria-haspopup="true" aria-controls="dropdown-menu-column-selector")
Expand Down Expand Up @@ -279,12 +280,16 @@ input {
}
}
.expand {
flex: 1;
}
.vert-space {
// margin-top: 4rem;
}
.time-slider {
width: 14rem;
width: 100%;
}
@media only screen and (max-width: 640px) {
Expand Down
14 changes: 10 additions & 4 deletions src/plugins/links-gl/LinkVolumes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ de:
.panel-items

//- button/dropdown for selecting column
.panel-item
.panel-item.config-section
config-panel(
:header="csvData.header"
:activeColumn="csvData.activeColumn"
Expand Down Expand Up @@ -642,6 +642,9 @@ export default MyPlugin
}
.panel-items {
width: 100%;
display: flex;
flex-direction: row;
margin: 0rem 0.5rem;
}
Expand All @@ -662,8 +665,7 @@ input {
}
.toggle {
margin-bottom: 0.25rem;
margin-right: 0.5rem;
margin: 0.25rem 0.5rem 0.25rem 0;
}
#dropdown-menu-color-selector {
Expand All @@ -678,8 +680,12 @@ input {
margin-top: 0rem;
}
.config-section {
flex: 1;
}
.diff-section {
margin-top: 1rem;
margin-top: 0.7rem;
}
@media only screen and (max-width: 640px) {
Expand Down
5 changes: 3 additions & 2 deletions src/workers/DataFetcher.thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ expose({
_dataset = _config.dataset

// if dataset has a path in it, we need to fetch the correct subfolder contents
if (_config.dataset.startsWith('.') || _config.dataset.startsWith('/')) {
const mergedFolder = `${_subfolder}/${_config.dataset}`
const slash = _config.dataset.indexOf('/')
if (slash > -1) {
const mergedFolder = slash === 0 ? _config.dataset : `${_subfolder}/${_config.dataset}`
_dataset = mergedFolder.substring(1 + mergedFolder.lastIndexOf('/'))
_subfolder = mergedFolder.substring(0, mergedFolder.lastIndexOf('/'))

Expand Down

0 comments on commit 0d750f0

Please sign in to comment.