mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +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") {
|
||||
$("#realm-logo").attr("src", realm.realm_night_logo_url);
|
||||
$("#realm-navbar-wide-logo").attr("src", realm.realm_night_logo_url);
|
||||
} else {
|
||||
$("#realm-logo").attr("src", realm.realm_logo_url);
|
||||
$("#realm-navbar-wide-logo").attr("src", realm.realm_logo_url);
|
||||
}
|
||||
|
||||
change_logo_delete_button(
|
||||
@@ -109,6 +109,6 @@ export function initialize(): void {
|
||||
// render once
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -630,7 +630,7 @@ export function initialize(): void {
|
||||
});
|
||||
|
||||
tippy.delegate("body", {
|
||||
target: "#realm-logo",
|
||||
target: "#realm-navbar-wide-logo",
|
||||
placement: "right",
|
||||
appendTo: () => document.body,
|
||||
onShow(instance) {
|
||||
|
||||
@@ -2046,7 +2046,7 @@ body:not(.hide-left-sidebar) {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#realm-logo {
|
||||
#realm-navbar-wide-logo {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<span class="left-sidebar-toggle-unreadcount">0</span>
|
||||
</a>
|
||||
<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"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user