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

satus.js formatting, fixing some variable declarations #2122

Merged
merged 1 commit into from
Mar 25, 2024
Merged

satus.js formatting, fixing some variable declarations #2122

merged 1 commit into from
Mar 25, 2024

Conversation

raszpl
Copy link
Contributor

@raszpl raszpl commented Mar 25, 2024

nothing important, just fixing some errors/warnings thrown by linter

@Tithi49
Copy link

Tithi49 commented Mar 25, 2024 via email

@ImprovedTube ImprovedTube merged commit 3676cd1 into code-charity:master Mar 25, 2024
@raszpl raszpl deleted the patch-7 branch March 30, 2024 13:46
@ImprovedTube
Copy link
Member

Shortcuts
revert: 033ed4d
( @raszpl )

@raszpl
Copy link
Contributor Author

raszpl commented Apr 2, 2024

doh! 'self' is declared one line above and is only used in that one line below

		var self = this,
			parent = parent || self.primary,
			children = parent.children;

weird code, someone declared 'self' to just use it once one line over :|. 'this' should be used directly #2146 :

	component.render = function(parent = this.primary) {
		let children = parent.children;

btw when testing shortucuts I noticed:

.satus-modal__surface {
    color: var(--satus-modal-foreground);

sets text color same as foreground, makes shortcuts white text on white rectangle in most themes. Should be same as:

.satus-shortcut__value>.satus-shortcut__key {
    color: var(--satus-shortcut-key-text);

it actually looks like maybe at some point this rule covered it, but now keys in popup are under .satus-shortcut__primary>.satus-shortcut__key
fix #2145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants