Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tooltips: Add italics styling to description of multi-line tooltips.

sayamsamal9b1d4ca81e58
diff --git a/static/styles/tooltips.css b/static/styles/tooltips.css
index 8e6e57efe3b..829dafa51c9 100644
--- a/static/styles/tooltips.css
+++ b/static/styles/tooltips.css
@@ -23,6 +23,10 @@
color: hsla(0, 0%, 100%, 1);
}
+ .tooltip-inner-content {
+ line-height: 17px;
+ }
+
&[data-placement^="top"] > .tippy-arrow::before {
border-top-color: hsla(0, 0%, 20%, 1);
}
diff --git a/static/templates/buddy_list_tooltip_content.hbs b/static/templates/buddy_list_tooltip_content.hbs
index 9c803e8baa5..4aa23fb9b0c 100644
--- a/static/templates/buddy_list_tooltip_content.hbs
+++ b/static/templates/buddy_list_tooltip_content.hbs
@@ -1,13 +1,14 @@
<div class="buddy_list_tooltip_content">
- <span class="tooltip_inner_content">{{first_line}}
+ <span>
+ {{first_line}}
{{#if show_you}}
<span class="my_user_status">{{t "(you)" }}</span>
{{/if}}
</span>
{{#if second_line}}
- <br /><span class="tooltip_inner_content">{{second_line}}</span>
+ <br /><span class="tooltip-inner-content">{{second_line}}</span>
{{/if}}
{{#if third_line}}
- <br /><span class="tooltip_inner_content">{{third_line}}</span>
+ <br /><span class="tooltip-inner-content">{{third_line}}</span>
{{/if}}
</div>
diff --git a/static/templates/compose.hbs b/static/templates/compose.hbs
index c612fa82756..ebf0f7edf59 100644
--- a/static/templates/compose.hbs
+++ b/static/templates/compose.hbs
@@ -143,4 +143,9 @@
</div>
</div>
-<template id="add-global-time-tooltip">{{#tr}}Add global time<br />Everyone sees global times in their own time zone.{{/tr}}</template>
+<template id="add-global-time-tooltip">
+ <div>
+ <span>{{#tr}}Add global time{{/tr}}</span><br/>
+ <span class="tooltip-inner-content italic">{{#tr}}Everyone sees global times in their own time zone.{{/tr}}</span>
+ </div>
+</template>
diff --git a/static/templates/message_inline_image_tooltip.hbs b/static/templates/message_inline_image_tooltip.hbs
index 5782555b191..e86b68f12cf 100644
--- a/static/templates/message_inline_image_tooltip.hbs
+++ b/static/templates/message_inline_image_tooltip.hbs
@@ -1,3 +1,3 @@
<strong>{{ title }}</strong>
<br/>
-{{t 'Click to view or download.'}}
+<span class="tooltip-inner-content italic">{{t 'Click to view or download.'}}</span>
diff --git a/static/templates/narrow_to_compose_recipients_tooltip.hbs b/static/templates/narrow_to_compose_recipients_tooltip.hbs
index 2c4fc768555..f48d90ea8cc 100644
--- a/static/templates/narrow_to_compose_recipients_tooltip.hbs
+++ b/static/templates/narrow_to_compose_recipients_tooltip.hbs
@@ -1,7 +1,7 @@
<div>
<span>{{t 'Go to conversation' }}</span>
{{#if display_current_view}}
- <p class="narrow_to_compose_recipient_current_view_help">{{display_current_view}}</p>
+ <p class="narrow_to_compose_recipient_current_view_help tooltip-inner-content italic">{{display_current_view}}</p>
{{/if}}
</div>
{{hotkey_hints "Ctrl" "."}}