Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved icon sizes in SmartNodeSelector #426

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class Tag extends React.Component<TagProps> {
<button
key={"TagPreviousButton_" + index}
className={resolveClassNames(
"appearance-none bg-cyan-600 border-0 cursor-pointer inline-block outline-none p-0 m-0 h-1/2 w-4 disabled:opacity-30 disabled:cursor-default",
"appearance-none bg-cyan-600 border-0 cursor-pointer inline-block outline-none p-0 m-0 h-1/2 w-4 disabled:opacity-30 disabled:cursor-default text-xs",
{ "hover:bg-cyan-500": position !== 0 }
)}
disabled={position === 0}
Expand All @@ -186,12 +186,12 @@ export class Tag extends React.Component<TagProps> {
e.stopPropagation();
}}
>
<ExpandLess fontSize="small" className="text-white" />
<ExpandLess fontSize="inherit" className="text-white" />
</button>
<button
key={"TagNextButton_" + index}
className={resolveClassNames(
"appearance-none bg-cyan-600 border-0 cursor-pointer inline-block outline-none p-0 m-0 h-1/2 w-4 disabled:opacity-30 disabled:cursor-default",
"appearance-none bg-cyan-600 border-0 cursor-pointer inline-block outline-none p-0 m-0 h-1/2 w-4 disabled:opacity-30 disabled:cursor-default text-xs",
{ "hover:bg-cyan-500": position !== subgroups.length - 1 }
)}
disabled={position === subgroups.length - 1}
Expand All @@ -206,7 +206,7 @@ export class Tag extends React.Component<TagProps> {
e.stopPropagation();
}}
>
<ExpandMore fontSize="small" className="text-white" />
<ExpandMore fontSize="inherit" className="text-white" />
</button>
</div>
);
Expand Down Expand Up @@ -407,11 +407,11 @@ export class Tag extends React.Component<TagProps> {
<button
type="button"
key={"TagRemoveButton_" + index}
className="absolute -right-2 -top-2 bg-cyan-600 border border-white rounded-full cursor-pointer w-4 h-4 p-0 flex items-center justify-center hover:bg-cyan-500 z-8"
className="absolute -right-2 -top-2 bg-cyan-600 border border-white rounded-full cursor-pointer w-4 h-4 p-0 flex items-center justify-center hover:bg-cyan-500 z-8 text-sm"
title="Remove"
onClick={(e): void => removeTag(e, index)}
>
<Close fontSize="small" className="text-white" />
<Close fontSize="inherit" className="text-white" />
</button>
)}
{this.createBrowseButtons(treeNodeSelection, index)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1677,13 +1677,13 @@ export class SmartNodeSelectorComponent extends React.Component<SmartNodeSelecto
</ul>
<div className="absolute right-2 top-1/2 -mt-3">
<button
className="appearance-none bg-cyan-600 rounded-full w-6 h-6 flex items-center justify-center hover:bg-cyan-500 text-white cursor-pointer disabled:hidden"
className="appearance-none bg-cyan-600 rounded-full w-6 h-6 flex items-center justify-center hover:bg-cyan-500 text-white cursor-pointer disabled:hidden text-sm"
type="button"
title="Clear all"
onClick={this.clearAllTags}
disabled={this.countTags() <= 1 && this.hasLastEmptyTag()}
>
<Close fontSize="small" />
<Close fontSize="inherit" />
</button>
</div>
{showSuggestions && (
Expand Down