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.

css: Add resizer handle icon in resizable textarea for webkit.

Pratik Chandac2681d740568
diff --git a/web/images/resize-handle-black.svg b/web/images/resize-handle-black.svg
new file mode 100644
index 00000000000..3068193e9b1
--- /dev/null
+++ b/web/images/resize-handle-black.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M21 15L15 21M21 8L8 21" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>
\ No newline at end of file
diff --git a/web/images/resize-handle-white.svg b/web/images/resize-handle-white.svg
new file mode 100644
index 00000000000..d3abbe93bb6
--- /dev/null
+++ b/web/images/resize-handle-white.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M21 15L15 21M21 8L8 21" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>
\ No newline at end of file
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 5324e9cf909..ece77a8dec0 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -119,6 +119,11 @@ input::placeholder {
@extend .placeholder;
}
+/* Custom resizer icon for the textarea */
+textarea::-webkit-resizer {
+ background-image: var(--svg-resize-handle);
+}
+
/* -- tab switcher -- */
.tab-switcher {
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 1a5b4cb97c4..c6720d58a2f 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -2260,6 +2260,9 @@
/* Theme-dependent SVGs */
--svg-url-thumbnail-loader: url("../images/loading/loader-black.svg");
+ /* Zulip resizer handle svg */
+ --svg-resize-handle: url("../images/resize-handle-black.svg");
+
/* Emoji-picker colors */
--color-background-emoji-picker-popover: light-dark(
hsl(0deg 0% 93%),
@@ -3097,6 +3100,9 @@
/* Theme-dependent SVGs */
--svg-url-thumbnail-loader: url("../images/loading/loader-white.svg");
+
+ /* Zulip resizer handle svg */
+ --svg-resize-handle: url("../images/resize-handle-white.svg");
}
@media screen {