mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-16 16:17:04 +00:00
Feature: Gist card: Add hide_border option support (#3080)
This commit is contained in:
@@ -93,6 +93,7 @@ const renderGistCard = (gistData, options = {}) => {
|
||||
border_radius,
|
||||
border_color,
|
||||
show_owner = false,
|
||||
hide_border = false,
|
||||
} = options;
|
||||
|
||||
// returns theme based colors with proper overrides and defaults
|
||||
@@ -164,6 +165,7 @@ const renderGistCard = (gistData, options = {}) => {
|
||||
.gray { font: 400 12px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${textColor} }
|
||||
.icon { fill: ${iconColor} }
|
||||
`);
|
||||
card.setHideBorder(hide_border);
|
||||
|
||||
return card.render(`
|
||||
<text class="description" x="25" y="-5">
|
||||
|
||||
Vendored
+1
@@ -59,5 +59,6 @@ type WakaTimeOptions = CommonOptions & {
|
||||
};
|
||||
|
||||
export type GistCardOptions = CommonOptions & {
|
||||
hide_border: boolean;
|
||||
show_owner: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user