From 79b00d3c2a5d1d2e9eb10cb7daff90594de10b19 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 10 May 2023 12:52:24 +0000 Subject: [PATCH] minor: Correct comments. --- web/src/dropdown_widget.js | 2 +- web/styles/zulip.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/dropdown_widget.js b/web/src/dropdown_widget.js index ea47b23781..9e46088b53 100644 --- a/web/src/dropdown_widget.js +++ b/web/src/dropdown_widget.js @@ -16,7 +16,7 @@ export function setup(tippy_props, get_options, item_click_callback, dropdown_pr // Define all possible `dropdown_props` here so that they are easy to track. const on_show_callback = dropdown_props.on_show_callback || noop; const on_exit_with_escape_callback = dropdown_props.on_exit_with_escape_callback || noop; - // Used focus the `target` after dropdown is closed. This is important since the dropdown is + // Used to focus the `target` after dropdown is closed. This is important since the dropdown is // appended to `body` and hence `body` is focused when the dropdown is closed, which makes // it hard for the user to get focus back to the `target`. const focus_target_on_hidden = dropdown_props.focus_target_on_hidden || true; diff --git a/web/styles/zulip.css b/web/styles/zulip.css index a79944a6f7..a9f8aa2886 100644 --- a/web/styles/zulip.css +++ b/web/styles/zulip.css @@ -3078,7 +3078,7 @@ select.invite-as { } .dropdown-list-wrapper { - /* Sync with `height` in dropdown_widget. */ + /* Sync with `max-height` in dropdown_widget. */ max-height: 200px; min-width: 200px;