Skip to content

Commit 40808f5

Browse files
committed
fix(template-builder): undo/redo icons, query form input styling, remove namespace display
- toolbar: change undo icon from arrow-rotate-left to step-backward, redo icon from arrow-rotate-right to step-forward - query-form: remove the PHP namespace confirmation block shown below the resource type grid after a type is selected — unnecessary detail that adds visual noise for users - CSS: add .tb-query-form scoped overrides so input[type=text] and select inside the query dialog share the same height (30px), border-radius (6px), font-size (12px), and padding as each other, eliminating the mismatch between text inputs and select inputs
1 parent cf2f5cc commit 40808f5

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

addon/components/template-builder/query-form.hbs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,7 @@
9393
{{/each}}
9494
</div>
9595

96-
{{#if this.form.model_type}}
97-
<div class="flex items-center space-x-2 px-2.5 py-1.5 bg-indigo-50 dark:bg-indigo-900/20 border border-indigo-200 dark:border-indigo-800 rounded-lg">
98-
<FaIcon @icon="check-circle" class="w-3.5 h-3.5 text-indigo-500 flex-shrink-0" />
99-
<span class="text-xs text-indigo-700 dark:text-indigo-300 font-mono truncate">{{this.form.model_type}}</span>
100-
</div>
101-
{{/if}}
96+
10297
</div>
10398

10499
{{! ── Filter Conditions ── }}

addon/components/template-builder/toolbar.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
disabled={{not @canUndo}}
8383
{{on "click" this.undo}}
8484
>
85-
<FaIcon @icon="arrow-rotate-left" class="w-3.5 h-3.5" />
85+
<FaIcon @icon="step-backward" class="w-3.5 h-3.5" />
8686
</button>
8787
<button
8888
type="button"
@@ -91,7 +91,7 @@
9191
disabled={{not @canRedo}}
9292
{{on "click" this.redo}}
9393
>
94-
<FaIcon @icon="arrow-rotate-right" class="w-3.5 h-3.5" />
94+
<FaIcon @icon="step-forward" class="w-3.5 h-3.5" />
9595
</button>
9696

9797
<div class="w-px h-5 bg-gray-200 dark:bg-gray-700 mx-1"></div>

addon/styles/components/template-builder.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,15 @@ body[data-theme='dark'] .tb-icon-btn:hover {
255255
.tb-variable-picker {
256256
/* z-index handled by Tailwind utility classes */
257257
}
258+
259+
/* --- Query Form dialog inputs --- */
260+
.tb-query-form input.tb-input,
261+
.tb-query-form select.tb-input {
262+
height: 30px;
263+
line-height: 30px;
264+
font-size: 12px;
265+
border-radius: 6px;
266+
padding: 0 8px;
267+
box-sizing: border-box;
268+
}
269+
.tb-query-form select.tb-input { padding-right: 4px; }

0 commit comments

Comments
 (0)