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

Fix welcome notification on wk.org #7623

Merged
merged 4 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Fixed a bug in proofreading aka editable mapping annotations where splitting would sometimes give the new id to the selected segment rather than to the split-off one. [#7608](https://github.com/scalableminds/webknossos/pull/7608)
- Fixed small styling errors as a follow up to the antd v5 upgrade [#7612](https://github.com/scalableminds/webknossos/pull/7612)
-Fixed deprecation warnings caused by Antd <Collapse> components. [#7610](https://github.com/scalableminds/webknossos/pull/7610)
- Fixed small styling error with a welcome notification for new users on webknossos.org. [7623](https://github.com/scalableminds/webknossos/pull/7623)


### Removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ function showWelcomeToast() {
className: "webknossos-welcome-toast",
duration: 0,
placement: "bottomRight",
style: {
width: 360,
},
icon: <i className="logo" />,
message: "Welcome to WEBKNOSSOS",
description: (
Expand Down
23 changes: 10 additions & 13 deletions frontend/stylesheets/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -369,38 +369,35 @@ button.narrow {
}

.webknossos-welcome-toast {
background-color: var(--ant-color-primary);
color: white;
// small notification in the bottom right corner when you are viewing a dataset and you are not logged in
background-color: var(--color-wk-blue);

.logo {
background: url(/assets/images/logo-icon-only.svg) 15px center no-repeat;
filter: brightness(4);
width: 74px;
height: 50px;
background-size: 50px 50px;
height: 45px;
background-size: 45px 45px;
display: inline-block;
}

.ant-notification-notice-content {
position: relative;
}
.ant-notification-notice-message {
padding-left: 40px;
margin-top: 20px;
margin-bottom: 30px;
color: white;
margin-bottom: 30px !important;
color: white !important;
font-size: 24px;
}

.ant-notification-notice-description {
font-size: 16px;
line-height: 21px;
color: white;
margin-left: 24px;
color: white !important;
margin-inline-start: 24px !important;

p {
margin-bottom: 30px;
margin-right: 60px;
margin-inline-end: 60px;
}

.drawing-welcome-guy {
Expand All @@ -411,7 +408,7 @@ button.narrow {
height: 100px;
display: block;
position: absolute;
top: 0px;
top: -5px;
right: 0px;
content: " ";
transform: translate(15%, -104%);
Expand Down