chore(recorder): align toolbar buttons correctly (#19357)
This commit is contained in:
parent
883db90c3e
commit
92b3995101
|
|
@ -175,7 +175,7 @@ function queryRole(scope: SelectorRoot, options: RoleEngineOptions, internal: bo
|
||||||
|
|
||||||
query(scope);
|
query(scope);
|
||||||
return result;
|
return result;
|
||||||
};
|
}
|
||||||
|
|
||||||
export function createRoleEngine(internal: boolean): SelectorEngine {
|
export function createRoleEngine(internal: boolean): SelectorEngine {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,8 @@ export const ToolbarButton: React.FC<React.PropsWithChildren<ToolbarButtonProps>
|
||||||
let className = `toolbar-button ${icon}`;
|
let className = `toolbar-button ${icon}`;
|
||||||
if (toggled)
|
if (toggled)
|
||||||
className += ' toggled';
|
className += ' toggled';
|
||||||
return <button className={className} onClick={onClick} title={title} disabled={!!disabled}><span className={`codicon codicon-${icon}`}></span>{ children }</button>;
|
return <button className={className} onClick={onClick} title={title} disabled={!!disabled}>
|
||||||
|
<span className={`codicon codicon-${icon}`} style={children ? { marginRight: 5 } : {}}></span>
|
||||||
|
{children}
|
||||||
|
</button>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue