File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
apps/webapp/app/components Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ export function Shortcuts() {
24
24
fullWidth
25
25
textAlignLeft
26
26
shortcut = { { modifiers : [ "shift" ] , key : "?" } }
27
+ className = "gap-x-0 pl-0.5"
28
+ iconSpacing = "gap-x-0.5"
27
29
>
28
30
Shortcuts
29
31
</ Button >
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ export type ButtonContentPropsType = {
177
177
variant : keyof typeof variant ;
178
178
shortcutPosition ?: "before-trailing-icon" | "after-trailing-icon" ;
179
179
tooltipDescription ?: string ;
180
+ iconSpacing ?: string ;
180
181
} ;
181
182
182
183
export function ButtonContent ( props : ButtonContentPropsType ) {
@@ -192,6 +193,7 @@ export function ButtonContent(props: ButtonContentPropsType) {
192
193
className,
193
194
showTooltip,
194
195
tooltipDescription,
196
+ iconSpacing,
195
197
} = props ;
196
198
const variation = allVariants . variant [ props . variant ] ;
197
199
@@ -216,7 +218,8 @@ export function ButtonContent(props: ButtonContentPropsType) {
216
218
className = { cn (
217
219
textAlignLeft ? "text-left" : "justify-center" ,
218
220
"flex w-full items-center" ,
219
- iconSpacingClassName
221
+ iconSpacingClassName ,
222
+ iconSpacing
220
223
) }
221
224
>
222
225
{ LeadingIcon &&
You can’t perform that action at this time.
0 commit comments