Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Hide the search placeholder when the bar slot is too narrow (#7913)

Anthony Stirling167d941a6866
diff --git a/frontend/editor/src/core/components/shared/WorkbenchBar.css b/frontend/editor/src/core/components/shared/WorkbenchBar.css
index 892be2df80..6523a03816 100644
--- a/frontend/editor/src/core/components/shared/WorkbenchBar.css
+++ b/frontend/editor/src/core/components/shared/WorkbenchBar.css
@@ -98,6 +98,7 @@
order: 2;
flex: 1 1 auto;
min-width: 0;
+ container-type: inline-size;
display: flex;
align-items: center;
justify-content: center;
@@ -122,6 +123,12 @@
background-color: transparent;
}
+@container (max-width: 9rem) {
+ .workbench-bar-search .super-search input::placeholder {
+ color: transparent;
+ }
+}
+
/* Crowded: drops to its own full-width row between the top row and the tools. */
.workbench-bar[data-wrapped="true"] .workbench-bar-search {
order: 3;