From 283b8e9bc802ff6b285232491dce14cfe7718797 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Mon, 24 Mar 2025 17:05:09 +0200 Subject: [PATCH] style(next)/floating buttons/backlink counter: fix the dropdown not showing up --- .../floating_buttons/floating_buttons.ts | 16 ++++++++++++++++ .../widgets/floating_buttons/zpetne_odkazy.ts | 5 +++-- src/public/stylesheets/theme-next/shell.css | 18 ++++++++++++++---- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/public/app/widgets/floating_buttons/floating_buttons.ts b/src/public/app/widgets/floating_buttons/floating_buttons.ts index 6fa8727fe..c7bf9b343 100644 --- a/src/public/app/widgets/floating_buttons/floating_buttons.ts +++ b/src/public/app/widgets/floating_buttons/floating_buttons.ts @@ -3,6 +3,14 @@ import { t } from "../../services/i18n.js"; import type FNote from "../../entities/fnote.js"; import type BasicWidget from "../basic_widget.js"; +/* + * Note: + * + * For floating button widgets that require content to overflow, the has-overflow CSS class should + * be applied to the root element of the widget. Additionally, this root element may need to + * properly handle rounded corners, as defined by the --border-radius CSS variable. + */ + const TPL = `