fix(ReviewDB): fix margin in self-profile preview (#935)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Amsyar Rasyiq 2023-04-19 00:53:11 +08:00 committed by GitHub
parent 7e96b5dcfb
commit 8be6c6e3ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -57,7 +57,7 @@ export default function ReviewsView({ userId }: { userId: string; }) {
} }
return ( return (
<div className="ReviewDB"> <div className="vc-reviewdb-view">
<Text <Text
tag="h2" tag="h2"
variant="eyebrow" variant="eyebrow"

View file

@ -16,6 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import "./style.css";
import { Settings } from "@api/settings"; import { Settings } from "@api/settings";
import ErrorBoundary from "@components/ErrorBoundary"; import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
@ -38,7 +40,7 @@ export default definePlugin({
replacement: { replacement: {
match: /\(.{0,10}\{user:(.),setNote:.,canDM:.,.+?\}\)/, match: /\(.{0,10}\{user:(.),setNote:.,canDM:.,.+?\}\)/,
replace: "$&,$self.getReviewsComponent($1)" replace: "$&,$self.getReviewsComponent($1)"
}, }
} }
], ],

View file

@ -0,0 +1,3 @@
[class|="section"]:not([class|="lastSection"]) + .vc-reviewdb-view {
margin-top: 12px;
}