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

Small UI fixes #164

Merged
merged 3 commits into from
Apr 7, 2021
Merged

Small UI fixes #164

merged 3 commits into from
Apr 7, 2021

Conversation

darabos
Copy link
Contributor

@darabos darabos commented Apr 7, 2021

Fixes #153. Fixes #154.

The flickering was caused by the CSS transition of the transform on box hover. If you make the transition longer (I used 1000 seconds) you can inspect where the category selector goes off to. It's somewhere off-screen. Interestingly the magnifying glass icon stays in place.

I'm not sure how this selector was positioned in the first place. It had a float: left property. But it's on the right? Anyway, I changed it to position: absolute; right: 0; which makes more sense and also works even during the transition.

As I was testing to make sure this works with all sorts of window sizes, I notice that a long workspace name subtly breaks a few things and looks ugly. I've changed it so this never happens. We rather truncate the workspace name with a "..." at the end.

The other thing driving me crazy was that clicking on something to open it from the directory browser just didn't work. Turns out this has been the case since 4.0.0 (f2a4450) but it only affects directories that have spaces in the name. (Like we're on Windows 95! 😄)

We don't want to reload the directory browser when it's just changing directories. So the linked commit added skipReload() which will skip the controller reload on the next URL change. We call skipReload() before changing the URL to a different directory.

Emphasis on "different": We also call it when changing from Foo bar to Foo%20bar. But that does not actually trigger a URL change. So we will skip the controller reload on the URL change after that! E.g. when we are supposed to load the workspace.

It's just terrible. For now I've just added a simple local fix. I guess there is a better way to do this, but I can't spend more time on it now.

@darabos darabos merged commit 6f7b85d into master Apr 7, 2021
@darabos darabos deleted the darabos-css-fixes branch April 7, 2021 15:58
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.

Clicking on workspace does not open it The box catalog is flickering
1 participant