Skip to content

Commit ba7ce5e

Browse files
committed
width fix
1 parent 280d03b commit ba7ce5e

File tree

4 files changed

+20
-40
lines changed

4 files changed

+20
-40
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,6 @@ If you are upgrading from a version prior to 2.0.0, please note the changes to p
189189

190190
-- Add support for Dolt diff.
191191

192-
## [2.3.8]
192+
## [2.3.9]
193193

194194
-- Diff section UI fixes.

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "commit-graph",
3-
"version": "2.3.8",
3+
"version": "2.3.9",
4+
"packageManager": "[email protected]",
45
"homepage": "https://liuliu-dev.github.io/CommitGraph/",
56
"author": "Liu Liu <[email protected]>",
67
"description": "A React component to visualize a commit graph.",
@@ -92,5 +93,9 @@
9293
},
9394
"main": "dist/cjs/index.js",
9495
"module": "dist/esm/index.js",
95-
"types": "dist/index.d.ts"
96-
}
96+
"types": "dist/index.d.ts",
97+
"resolutions": {
98+
"string-width": "^4.2.0",
99+
"wrap-ansi": "^7.0.0"
100+
}
101+
}

src/components/DiffSection/index.module.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
border: 1px solid #e1e4e8;
55
background-color: white;
66
position: absolute;
7-
width: 360px;
7+
width: fit-content;
8+
max-width: 32rem;
9+
overflow-wrap: anywhere;
810
right: 1rem;
911
top: 1rem;
1012
z-index: 10;
@@ -55,6 +57,9 @@
5557
padding: 0.25rem 0;
5658
display: flex;
5759
align-items: center;
60+
svg {
61+
flex-shrink: 0;
62+
}
5863
}
5964
}
6065

yarn.lock

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2907,11 +2907,6 @@ ansi-styles@^5.0.0:
29072907
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b"
29082908
integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==
29092909

2910-
ansi-styles@^6.1.0:
2911-
version "6.2.1"
2912-
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5"
2913-
integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==
2914-
29152910
any-promise@^1.0.0:
29162911
version "1.3.0"
29172912
resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f"
@@ -4211,11 +4206,6 @@ dot-case@^3.0.4:
42114206
no-case "^3.0.4"
42124207
tslib "^2.0.3"
42134208

4214-
eastasianwidth@^0.2.0:
4215-
version "0.2.0"
4216-
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
4217-
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
4218-
42194209
42204210
version "1.1.1"
42214211
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
@@ -4261,11 +4251,6 @@ emoji-regex@^8.0.0:
42614251
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
42624252
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
42634253

4264-
emoji-regex@^9.2.2:
4265-
version "9.2.2"
4266-
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
4267-
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
4268-
42694254
emojis-list@^3.0.0:
42704255
version "3.0.0"
42714256
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78"
@@ -8925,7 +8910,8 @@ string-length@^4.0.1:
89258910
char-regex "^1.0.2"
89268911
strip-ansi "^6.0.0"
89278912

8928-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
8913+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3, string-width@^5.1.2:
8914+
name string-width-cjs
89298915
version "4.2.3"
89308916
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
89318917
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -8934,15 +8920,6 @@ string-length@^4.0.1:
89348920
is-fullwidth-code-point "^3.0.0"
89358921
strip-ansi "^6.0.1"
89368922

8937-
string-width@^5.0.1, string-width@^5.1.2:
8938-
version "5.1.2"
8939-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
8940-
integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
8941-
dependencies:
8942-
eastasianwidth "^0.2.0"
8943-
emoji-regex "^9.2.2"
8944-
strip-ansi "^7.0.1"
8945-
89468923
string.prototype.padend@^3.0.0:
89478924
version "3.1.6"
89488925
resolved "https://registry.yarnpkg.com/string.prototype.padend/-/string.prototype.padend-3.1.6.tgz#ba79cf8992609a91c872daa47c6bb144ee7f62a5"
@@ -9004,6 +8981,7 @@ stringify-entities@^4.0.0:
90048981
character-entities-legacy "^3.0.0"
90058982

90068983
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
8984+
name strip-ansi-cjs
90078985
version "6.0.1"
90088986
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
90098987
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -9743,7 +9721,8 @@ which@^2.0.1:
97439721
dependencies:
97449722
isexe "^2.0.0"
97459723

9746-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
9724+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0, wrap-ansi@^8.1.0:
9725+
name wrap-ansi-cjs
97479726
version "7.0.0"
97489727
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
97499728
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -9752,15 +9731,6 @@ which@^2.0.1:
97529731
string-width "^4.1.0"
97539732
strip-ansi "^6.0.0"
97549733

9755-
wrap-ansi@^8.1.0:
9756-
version "8.1.0"
9757-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
9758-
integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==
9759-
dependencies:
9760-
ansi-styles "^6.1.0"
9761-
string-width "^5.0.1"
9762-
strip-ansi "^7.0.1"
9763-
97649734
wrappy@1:
97659735
version "1.0.2"
97669736
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"

0 commit comments

Comments
 (0)