diff options
-rw-r--r-- | assets/css/default.css | 10 | ||||
-rw-r--r-- | themes/default/layouts/partials/meta-context-menu.html | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index d09188b..19aa09e 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -849,6 +849,11 @@ micro-metadata-anchored svg { micro-metadata-menu { display: inline-block; + position: relative; +} + +micro-metadata-menu context-menu { + min-width: 10rem; } micro-metadata-menu context-menu svg { @@ -1517,6 +1522,11 @@ context-menu[left] { left: 0; } +context-menu[anchor] { + left: -125%; + top: 0; +} + context-menu[left], context-menu[right] { top: 1rem; diff --git a/themes/default/layouts/partials/meta-context-menu.html b/themes/default/layouts/partials/meta-context-menu.html index 1edf80e..7a87984 100644 --- a/themes/default/layouts/partials/meta-context-menu.html +++ b/themes/default/layouts/partials/meta-context-menu.html @@ -15,7 +15,7 @@ <span>menu</span> </label> <input hidden type="checkbox" id="context-metadata-{{ $id }}" /> - <context-menu right> + <context-menu anchor> {{- partial "meta-markdown.html" . -}} {{- partial "meta-permalink.html" . -}} <micro-metadata-plain> |