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

Config to show fraction label by default #15

Open
wzulfikar opened this issue Feb 23, 2022 · 0 comments
Open

Config to show fraction label by default #15

wzulfikar opened this issue Feb 23, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@wzulfikar
Copy link

What
Currently, percent label is shown next to progress bar. Hovering it will change the percent to fraction:

Screen.Recording.2022-02-23.at.10.06.35.mov.mp4

Is there a config to flip the behavior so that by default, a fraction is shown and hovering the bar will change it to percent. Like this:

Screen.Recording.2022-02-23.at.10.08.54.mov.mp4

I'd prefer fraction as default because I can estimate the percentage by seeing the progress bar. And if I need to see the specific % value, i can hover it. For now, what I did is manually customizing the dist code (~/.logseq/plugins/logseq-todo-master/dist/assets/index.[some-hash].js):

.todo-master-progress-bar__percentage-label {
-  opacity: 1;
+  opacity: 0;
}

.todo-master-progress-bar__fraction-label {
-  opacity: 0;
+  opacity: 1;
}

.todo-master-progress-bar__label:hover
  .todo-master-progress-bar__percentage-label {
-  opacity: 0;
+  opacity: 1;
}

.todo-master-progress-bar__label:hover
  .todo-master-progress-bar__fraction-label {
-  opacity: 1;
+  opacity: 0;
}
@pengx17 pengx17 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants