mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
navbar: Rename realm-logo to realm-navbar-wide-logo.
This commit is contained in:
@@ -88,9 +88,9 @@ export function render(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settings_data.using_dark_theme() && realm.realm_night_logo_source !== "D") {
|
if (settings_data.using_dark_theme() && realm.realm_night_logo_source !== "D") {
|
||||||
$("#realm-logo").attr("src", realm.realm_night_logo_url);
|
$("#realm-navbar-wide-logo").attr("src", realm.realm_night_logo_url);
|
||||||
} else {
|
} else {
|
||||||
$("#realm-logo").attr("src", realm.realm_logo_url);
|
$("#realm-navbar-wide-logo").attr("src", realm.realm_logo_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
change_logo_delete_button(
|
change_logo_delete_button(
|
||||||
@@ -109,6 +109,6 @@ export function initialize(): void {
|
|||||||
// render once
|
// render once
|
||||||
render();
|
render();
|
||||||
|
|
||||||
// Rerender the realm-logo when the browser detects color scheme changes.
|
// Rerender the realm-navbar-wide-logo when the browser detects color scheme changes.
|
||||||
ui_util.listener_for_preferred_color_scheme_change(render);
|
ui_util.listener_for_preferred_color_scheme_change(render);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -630,7 +630,7 @@ export function initialize(): void {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tippy.delegate("body", {
|
tippy.delegate("body", {
|
||||||
target: "#realm-logo",
|
target: "#realm-navbar-wide-logo",
|
||||||
placement: "right",
|
placement: "right",
|
||||||
appendTo: () => document.body,
|
appendTo: () => document.body,
|
||||||
onShow(instance) {
|
onShow(instance) {
|
||||||
|
|||||||
@@ -2046,7 +2046,7 @@ body:not(.hide-left-sidebar) {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#realm-logo {
|
#realm-navbar-wide-logo {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<span class="left-sidebar-toggle-unreadcount">0</span>
|
<span class="left-sidebar-toggle-unreadcount">0</span>
|
||||||
</a>
|
</a>
|
||||||
<a href="" class="brand no-style">
|
<a href="" class="brand no-style">
|
||||||
<img id="realm-logo" src="" alt="" class="nav-logo no-drag"/>
|
<img id="realm-navbar-wide-logo" src="" alt="" class="nav-logo no-drag"/>
|
||||||
<img id="realm-navbar-icon-logo" alt="" src="{{ realm_icon_url }}" class="nav-logo no-drag"/>
|
<img id="realm-navbar-icon-logo" alt="" src="{{ realm_icon_url }}" class="nav-logo no-drag"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user