Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten metadata layout and improve grouping #2897

Merged
merged 2 commits into from
May 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<j-tray-plugin
:description="docs_description || 'View metadata.'"
:link="docs_link || 'https://jdaviz.readthedocs.io/en/'+vdocs+'/'+config+'/plugins.html#metadata-viewer'"
:popout_button="popout_button"
:popout_button="popout_button"
kecnry marked this conversation as resolved.
Show resolved Hide resolved
:scroll_to.sync="scroll_to">

<!-- for specviz, we'll allow this to hide for a single entry, but since filters are being
Expand Down Expand Up @@ -37,17 +37,15 @@
</v-row>

<v-row no-gutters>
<v-col cols=6><U><B>Key</B></U></v-col>
<v-col cols=6><U>Value</U></v-col>
<v-col v-if="has_comments" cols=6 class="text--secondary"><U>Comment</U></v-col>
<v-col cols=12><U><B>Key | Value </B></U></v-col>
<v-col v-if="has_comments" cols=12 class="text--secondary"><U>Comment</U></v-col>
haticekaratay marked this conversation as resolved.
Show resolved Hide resolved
</v-row>
<v-row
v-for="item in metadata.filter((item) => {return metadata_filter === null || item.join().toLowerCase().indexOf(metadata_filter.toLowerCase()) !== -1})"
:key="item[0]"
no-gutters>
<v-col cols=6><B>{{ item[0] }}</B></v-col>
<v-col cols=6>{{ item[1] }}</v-col>
<v-col v-if="has_comments" cols=6 class="text--secondary">{{ item[2] }}</v-col>
<v-col cols=12><B>{{ item[0] }}</B> | {{ item[1] }}</v-col>
<v-col v-if="has_comments" cols=12 class="text--secondary">{{ item[2] }}</v-col>
</v-row>
</div>
<v-row v-else>
Expand Down
Loading