fix settings category border-radius issue

pull/95/head
dperolio 2 years ago
parent c518b5411c
commit 63f6cce40d
No known key found for this signature in database
GPG Key ID: 4191689562D51409

@ -44,7 +44,7 @@ export default class CommunityManager extends Events {
}
/**
*
*
* @param {string} addonId Addon ID
* @returns {boolean}
*/
@ -53,14 +53,15 @@ export default class CommunityManager extends Events {
}
/**
*
*
* @returns {Promise<void>}
*/
async initialize () {
/**
* Gets all of the addon repos currently active on the addon community organization.
*/
const addons = (await get(`${HTTP.API}/addons`))?.body?.message;
const response = await get(`${HTTP.API}/addons`);
const addons = await response.body;
const { plugins, themes } = addons;
Object.values(plugins)
.map(plugin => this.plugins.set(plugin.addonId, plugin));

@ -132,7 +132,7 @@ const _logHandler = options => {
const processedLabels = [];
for (const [ index, label ] of labels.entries()) {
/**
*
*
*/
if (isString(label)) {
let color;
@ -150,7 +150,7 @@ const _logHandler = options => {
color
});
/**
*
*
*/
} else {
processedLabels.push({
@ -164,7 +164,7 @@ const _logHandler = options => {
const styles = [];
/**
*
*
*/
for (const label of processedLabels.slice(0, this.MAX_LABELS_COUNT)) {
if (!label?.text || !label?.color) {
@ -179,7 +179,7 @@ const _logHandler = options => {
}
/**
*
*
*/
return console[type](
`%c ${texts.join('')}`,

@ -6,10 +6,11 @@
padding: 0;
border-radius: 8px;
flex-direction: column;
overflow: hidden;
/**
* Targetting any elements after a category that aren't another category.
*/
& + *:not(.vz-settings-category) {
& + :not(.vz-settings-category) {
margin-top: 20px;
}
&-meta {

@ -1681,11 +1681,12 @@
padding: 0;
border-radius: 8px;
flex-direction: column;
overflow: hidden;
/**
* Targetting any elements after a category that aren't another category.
*/
}
.vz-settings-category + *:not(.vz-settings-category) {
.vz-settings-category + :not(.vz-settings-category) {
margin-top: 20px;
}
.vz-settings-category-meta {

Loading…
Cancel
Save