fix(ReviewDB): fix margin in self-profile preview (#935)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
7e96b5dcfb
commit
8be6c6e3ce
@ -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"
|
||||||
|
@ -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)"
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
3
src/plugins/reviewDB/style.css
Normal file
3
src/plugins/reviewDB/style.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[class|="section"]:not([class|="lastSection"]) + .vc-reviewdb-view {
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user