-
Notifications
You must be signed in to change notification settings - Fork 30
Lumino tab titles - distinguish between log view tabs #2290
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
base: master
Are you sure you want to change the base?
Conversation
ac713cf
to
25b272e
Compare
eventBus.emit( | ||
`lumino:update-tab:${this.widgetID}`, | ||
{ | ||
title: this.jobLog ? 'Log – Job' : 'Log – Workflow', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using fewer and narrower chars?
title: this.jobLog ? 'Log – Job' : 'Log – Workflow', | |
title: this.jobLog ? 'Log: Job' : 'Log: Workflow', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good. I've made some style suggestions.
async ({ id, file }, old) => { | ||
// update the widget tab caption when the id or file change | ||
if (this.widgetID) { | ||
const prefix = this.relativeID ? `${this.relativeID} – ` : '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not make this simpler (Though you might also wish or add the submit number?)
const prefix = this.relativeID ? `${this.relativeID} – ` : '' | |
const prefix = this.relativeID ? `${this.relativeID}/` : '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like it's visually clearer to have the separation
Closes #2023
Distinguish between job and workflow log tabs in the tab title, and add a caption that shows the open file. It would be good to include that in the tab title but we would need to figure out how to truncate well.
Also increased the width of the tabs and reduced the font size slightly to accommodate the longer length of "Log − Workflow" as a title
Checklist
CONTRIBUTING.md
and added my name as a Code Contributor.