mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #11804, fix direction of dropdown on rtl
This commit is contained in:
@@ -273,6 +273,7 @@ module.exports = function (middleware) {
|
||||
const version = nconf.get('version');
|
||||
|
||||
res.locals.config.userLang = res.locals.config.acpLang || res.locals.config.userLang;
|
||||
res.locals.config.isRTL = results.languageDirection === 'rtl';
|
||||
const templateValues = {
|
||||
config: res.locals.config,
|
||||
configJSON: jsesc(JSON.stringify(res.locals.config), { isScriptContext: true }),
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<button class="btn btn-light btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="selected-template">{templates.0.template}</span> <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu p-1">
|
||||
<ul class="dropdown-menu {{{ if config.isRTL }}}dropdown-menu-end{{{ end }}} p-1">
|
||||
{{{ each templates }}}
|
||||
<li><a class="dropdown-item rounded-1" href="#" data-template="{./template}" data-toggle="pill">{./template}</a></li>
|
||||
{{{ end }}}
|
||||
|
||||
Reference in New Issue
Block a user