diff options
author | Amsyar Rasyiq <82711525+amsyarasyiq@users.noreply.github.com> | 2023-04-19 00:53:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 18:53:11 +0200 |
commit | 8be6c6e3ceed26c5a4524784339c66d49cb1b278 (patch) | |
tree | 77c49fbde08889ac591dbb693cfc7190308569c1 /src/plugins | |
parent | 7e96b5dcfbf29dfa0fe6c61e861d8441967289d0 (diff) | |
download | Vencord-8be6c6e3ceed26c5a4524784339c66d49cb1b278.tar.gz Vencord-8be6c6e3ceed26c5a4524784339c66d49cb1b278.tar.bz2 Vencord-8be6c6e3ceed26c5a4524784339c66d49cb1b278.zip |
fix(ReviewDB): fix margin in self-profile preview (#935)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/reviewDB/components/ReviewsView.tsx | 2 | ||||
-rw-r--r-- | src/plugins/reviewDB/index.tsx | 4 | ||||
-rw-r--r-- | src/plugins/reviewDB/style.css | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/reviewDB/components/ReviewsView.tsx b/src/plugins/reviewDB/components/ReviewsView.tsx index 541500c..466e9d4 100644 --- a/src/plugins/reviewDB/components/ReviewsView.tsx +++ b/src/plugins/reviewDB/components/ReviewsView.tsx @@ -57,7 +57,7 @@ export default function ReviewsView({ userId }: { userId: string; }) { } return ( - <div className="ReviewDB"> + <div className="vc-reviewdb-view"> <Text tag="h2" variant="eyebrow" diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx index 8e83983..01740a2 100644 --- a/src/plugins/reviewDB/index.tsx +++ b/src/plugins/reviewDB/index.tsx @@ -16,6 +16,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +import "./style.css"; + import { Settings } from "@api/settings"; import ErrorBoundary from "@components/ErrorBoundary"; import { Devs } from "@utils/constants"; @@ -38,7 +40,7 @@ export default definePlugin({ replacement: { match: /\(.{0,10}\{user:(.),setNote:.,canDM:.,.+?\}\)/, replace: "$&,$self.getReviewsComponent($1)" - }, + } } ], diff --git a/src/plugins/reviewDB/style.css b/src/plugins/reviewDB/style.css new file mode 100644 index 0000000..6171abe --- /dev/null +++ b/src/plugins/reviewDB/style.css @@ -0,0 +1,3 @@ +[class|="section"]:not([class|="lastSection"]) + .vc-reviewdb-view { + margin-top: 12px; +} |