feat(popup_editor): enable floating buttons

This commit is contained in:
Elian Doran 2025-11-24 21:45:33 +02:00
parent 2158f69c09
commit 015d70afb6
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View File

@ -1453,7 +1453,7 @@ div.promoted-attribute-cell .multiplicity:has(span) span {
*/
/* Floating buttons container */
div#center-pane .floating-buttons-children {
.floating-buttons-children {
opacity: 1;
min-height: var(--floating-button-height);
transform-origin: right;
@ -1465,12 +1465,12 @@ div#center-pane .floating-buttons-children {
opacity 250ms ease-out;
}
body[dir=rtl] div#center-pane .floating-buttons-children {
body[dir=rtl] .floating-buttons-children {
transform-origin: left;
}
/* Floating buttons container (collapsed) */
div#center-pane .floating-buttons-children.temporarily-hidden {
.floating-buttons-children.temporarily-hidden {
display: flex !important;
opacity: 0;
transform: scaleX(0);

View File

@ -12,6 +12,9 @@ import NoteList from "../collections/NoteList";
import StandaloneRibbonAdapter from "../ribbon/components/StandaloneRibbonAdapter";
import FormattingToolbar from "../ribbon/FormattingToolbar";
import PromotedAttributes from "../PromotedAttributes";
import FloatingButtons from "../FloatingButtons";
import { DESKTOP_FLOATING_BUTTONS, MOBILE_FLOATING_BUTTONS } from "../FloatingButtonsDefinitions";
import utils from "../../services/utils";
export default function PopupEditor() {
const [ shown, setShown ] = useState(false);
@ -51,6 +54,7 @@ export default function PopupEditor() {
>
<PromotedAttributes />
<StandaloneRibbonAdapter component={FormattingToolbar} />
<FloatingButtons items={utils.isMobile() ? MOBILE_FLOATING_BUTTONS : DESKTOP_FLOATING_BUTTONS} />
<NoteDetail />
<NoteList media="screen" displayOnlyCollections />
</Modal>