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

chore: update save button style #1542

Merged
merged 1 commit into from
Apr 16, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions web/src/components/Dialog/BaseDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const BaseDialog: React.FC<Props> = (props: Props) => {
const dialogIndex = dialogStore.state.dialogStack.findIndex((item) => item === dialogName);

useEffect(() => {
document.body.classList.add("overflow-hidden");
dialogStore.pushDialogStack(dialogName);
const handleKeyDown = (event: KeyboardEvent) => {
if (event.code === "Escape") {
Expand All @@ -39,6 +40,9 @@ const BaseDialog: React.FC<Props> = (props: Props) => {
return () => {
document.body.removeEventListener("keydown", handleKeyDown);
dialogStore.removeDialog(dialogName);
if (dialogStore.state.dialogStack.length === 0) {
document.body.classList.remove("overflow-hidden");
}
};
}, []);

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/LocaleSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const LocaleSelect: FC<Props> = (props: Props) => {

return (
<Select
className={`!min-w-[12rem] w-auto whitespace-nowrap ${className ?? ""}`}
className={`!min-w-[10rem] w-auto whitespace-nowrap ${className ?? ""}`}
startDecorator={<Icon.Globe className="w-4 h-auto" />}
value={value}
onChange={(_, value) => handleSelectChange(value as Locale)}
Expand Down
2 changes: 1 addition & 1 deletion web/src/less/memo-editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
}

> .confirm-btn {
@apply border-none select-none rounded flex flex-row justify-center items-center shadow cursor-pointer px-3 py-0 leading-8 bg-green-600 text-white text-sm hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60;
@apply border-none select-none rounded-full flex flex-row justify-center items-center shadow cursor-pointer px-4 py-0 leading-8 bg-green-600 text-white text-sm hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60;
}
}
}
Expand Down