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

Remove useLayout #1080

Merged
merged 5 commits into from
Jun 25, 2024
Merged

Remove useLayout #1080

merged 5 commits into from
Jun 25, 2024

Conversation

loucass003
Copy link
Member

@loucass003 loucass003 commented Jun 18, 2024

This will remove the use of useLayout that was handling the size of most layouts with javascript. This was slow and also didnt work all the time when resizing the window. I removed that function and redid all the layouts with css only.
I also slided in minor css tweaks for padding and alignments, mostly for mobile

Fixes #1067

@@ -0,0 +1,24 @@
.main-layout {
display: grid;
Copy link
Member

Choose a reason for hiding this comment

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

Why is this not in tailwind?

Copy link
Member

Choose a reason for hiding this comment

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

i think it makes sense in this case, because it needs to be a grid for the grid template to be applied

@loucass003 loucass003 linked an issue Jun 18, 2024 that may be closed by this pull request
Copy link
Member

@ImUrX ImUrX left a comment

Choose a reason for hiding this comment

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

make prettier check the scss pls

gui/src/components/onboarding/pages/ConnectTracker.tsx Outdated Show resolved Hide resolved
gui/src/components/settings/pages/Serial.tsx Outdated Show resolved Hide resolved
gui/src/components/settings/pages/Serial.tsx Outdated Show resolved Hide resolved
gui/src/components/settings/pages/Serial.tsx Outdated Show resolved Hide resolved
Copy link
Member

@ImUrX ImUrX left a comment

Choose a reason for hiding this comment

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

tracker assignment tracker list seems to be broken. no longer shows unassigned trackers and assigned trackers in different lists

also seems like unassigned trackers look repeated two times?

@ImUrX ImUrX added Area: GUI Related to the GUI Type: Enhancement Adds or improves a feature labels Jun 25, 2024
@loucass003 loucass003 merged commit 94aec1f into main Jun 25, 2024
12 checks passed
@loucass003 loucass003 deleted the llelievr/remove-uselayout branch June 25, 2024 10:10
@ImUrX ImUrX mentioned this pull request Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: GUI Related to the GUI Type: Enhancement Adds or improves a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layouts break when resizing the window
3 participants