mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix(editor): improve some experiences on note toolbar (#11413)
Closes: [BS-3004](https://linear.app/affine-design/issue/BS-3004/page-block-ui-adjust)
This commit is contained in:
@@ -110,8 +110,8 @@ const builtinSurfaceToolbarConfig = {
|
|||||||
);
|
);
|
||||||
const label$ = computed(() =>
|
const label$ = computed(() =>
|
||||||
firstModel.props.displayMode$.value === NoteDisplayMode.EdgelessOnly
|
firstModel.props.displayMode$.value === NoteDisplayMode.EdgelessOnly
|
||||||
? 'Display In Page'
|
? 'Display in Page'
|
||||||
: 'Displayed In Page'
|
: 'Displayed in Page'
|
||||||
);
|
);
|
||||||
const onSelect = () => {
|
const onSelect = () => {
|
||||||
const newMode =
|
const newMode =
|
||||||
@@ -547,7 +547,7 @@ function setDisplayMode(
|
|||||||
const notification = ctx.std.getOptional(NotificationProvider);
|
const notification = ctx.std.getOptional(NotificationProvider);
|
||||||
notification?.notify({
|
notification?.notify({
|
||||||
title: data.title,
|
title: data.title,
|
||||||
message: `${data.message}. Find it in the TOC for quick navigation.`,
|
message: `${data.message} Find it in the TOC for quick navigation.`,
|
||||||
accent: 'success',
|
accent: 'success',
|
||||||
duration: 5 * 1000,
|
duration: 5 * 1000,
|
||||||
footer: html`<div class=${styles.viewInPageNotifyFooter}>
|
footer: html`<div class=${styles.viewInPageNotifyFooter}>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const styles = css`
|
|||||||
|
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
word-break: break-all;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
|
|||||||
Reference in New Issue
Block a user