Skip to content

fix: Display scalebar correctly#252

Merged
DafyddLlyr merged 1 commit intomainfrom
dp/scale-bar-style
Jan 10, 2023
Merged

fix: Display scalebar correctly#252
DafyddLlyr merged 1 commit intomainfrom
dp/scale-bar-style

Conversation

@DafyddLlyr
Copy link
Copy Markdown
Contributor

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 10, 2023

Deploy Preview for oslmap ready!

Name Link
🔨 Latest commit 17b91de
🔍 Latest deploy log https://app.netlify.com/sites/oslmap/deploys/63bd7804989e4a0009efbf98
😎 Deploy Preview https://deploy-preview-252--oslmap.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

pointsSource,
} from "./snapping";
import styles from "./styles.scss";
import styles from "./styles.scss?inline";
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Without this I was getting the following error when running the app -

image

Comment on lines +46 to +48
.ol-scale-bar-inner {
display: flex;
}
Copy link
Copy Markdown
Contributor Author

@DafyddLlyr DafyddLlyr Jan 10, 2023

Choose a reason for hiding this comment

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

I'm not sure why this isn't being applied correctly by default - maybe an issue with the OL CSS? Is it possible that Vite is doing some building/packaging and not importing an unused class?

Copy link
Copy Markdown
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@DafyddLlyr DafyddLlyr merged commit 113a065 into main Jan 10, 2023
@DafyddLlyr DafyddLlyr deleted the dp/scale-bar-style branch January 10, 2023 15:31
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.

Scale bar showing incorrectly when using useScaleBarStyle in Chromium

2 participants