mirror of https://github.com/zulip/zulip.git
header: Avoid using `.dropdown` for class name.
This is avoid conflict with styles defined for `.dropdown` in bootstrap.
This commit is contained in:
parent
9d1e977e2a
commit
c9a4660911
|
@ -1,5 +1,5 @@
|
|||
<div class="dropdown">
|
||||
<div class="dropdown-pill">
|
||||
<div class="portico-header-dropdown">
|
||||
<div class="portico-header-dropdown-pill">
|
||||
<img class="header-realm-icon" src="{{ realm_icon }}" alt="{{ _('Go to Zulip') }}"/>
|
||||
<div class="realm-name">{{ realm_name }}<i class="fa fa-chevron-down"></i></div>
|
||||
</div>
|
||||
|
|
|
@ -87,8 +87,8 @@ $(() => {
|
|||
return false;
|
||||
});
|
||||
|
||||
$(".portico-header .dropdown").on("click", (e) => {
|
||||
const $user_dropdown = $(e.target).closest(".dropdown");
|
||||
$(".portico-header .portico-header-dropdown").on("click", (e) => {
|
||||
const $user_dropdown = $(e.target).closest(".portico-header-dropdown");
|
||||
const dropdown_is_shown = $user_dropdown.hasClass("show");
|
||||
|
||||
if (!dropdown_is_shown) {
|
||||
|
|
|
@ -427,7 +427,7 @@ input.text-error {
|
|||
}
|
||||
|
||||
.portico-header {
|
||||
.dropdown {
|
||||
.portico-header-dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
|
@ -504,7 +504,7 @@ input.text-error {
|
|||
}
|
||||
}
|
||||
|
||||
.dropdown-pill {
|
||||
.portico-header-dropdown-pill {
|
||||
border: 1px solid hsl(0deg 0% 0% / 20%);
|
||||
border-radius: 4px;
|
||||
margin-left: 10px;
|
||||
|
|
Loading…
Reference in New Issue