Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Feature/5252 - #3

Merged
8 commits merged into
mainfrom
feature/5252
Jan 25, 2022
Merged

Feature/5252#3
8 commits merged into
mainfrom
feature/5252

Conversation

@ghost

@ghost ghost commented Jan 25, 2022

Copy link
Copy Markdown

No description provided.

@ghost
ghost marked this pull request as draft January 25, 2022 09:03
@ghost
ghost marked this pull request as ready for review January 25, 2022 10:06

@ushi-as ushi-as left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Geilo :) Ich hab mal einen Vorschlag formuliert. Take it or leave it :)

Comment thread content_script.js Outdated
function addButton(){
const sidebar = document.querySelector(".window-sidebar")
sidebar.innerHTML = "<span class='button-link' id='togglbtn'><span class='icon-sm plugin-icon'>+</span><span>Toggl Task</span></span>" + sidebar.innerHTML
sidebar.querySelectorAll(".mod-no-top-margin")[1].classList.remove("mod-no-top-margin")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das hier nimmt vom zweiten Element der Liste die Klasse weg. Ist das beabsichtigt oder meintest du das erste? Das wäre dann ...)[0]. Brauchts das überhaupt. Der margin stört doch nicht oder?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das zweite ist schon richtig, mod-no-top-margin soll von der h3 entfernt werden, damit diese einen Abstand zum Button hat

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aber innerhalb der sidebar der zweite? Der button kommt doch vor die erste h3 oder? Du machst ja sidebar.querySelectorAll. Da bekommst du nur Elemente innerhalb der sidebar, nicht das da links.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, mir fällt gerade auf, dass es bei einigen Karten noch ein .mod-no-top-margin in der sidebar gibt und bei einigen nicht...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaa ok. ich überlass die entscheidung dir. ich finds wie gesagt grad nicht so wichtig. wichtiger ist die funktionalität. hübsch machen, geht später immernoch.

Comment thread content_script.js Outdated
Comment thread content_script.js Outdated

@ushi-as ushi-as left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Geilo. Raus damit.

@ghost
ghost merged commit 25daf81 into main Jan 25, 2022
@ghost
ghost deleted the feature/5252 branch January 25, 2022 12:33
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants