removed some css to improve chrome col layout perf
This commit is contained in:
27
app/imports/api/creature/actions/Actions.js
Normal file
27
app/imports/api/creature/actions/Actions.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
|
||||
// Actions are creature actions that have been partially executed and not yet resolved
|
||||
// They require some user input to progress
|
||||
let Actions = new Mongo.Collection('actions');
|
||||
|
||||
let CreaturePropertySchema = new SimpleSchema({
|
||||
_id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
},
|
||||
// Which creature is taking the action
|
||||
_creatureId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
},
|
||||
// The user who began taking the action
|
||||
user: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
},
|
||||
// The property that is about to be applied
|
||||
property: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
},
|
||||
});
|
||||
13
app/imports/api/library/methods/getDefaultSlotFiller.js
Normal file
13
app/imports/api/library/methods/getDefaultSlotFiller.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export default function getDefaultSlotFiller(slot) {
|
||||
if (typeof slot !== 'object') throw 'getDefaultSlotFiller requires a slot';
|
||||
if (slot.type !== 'propertySlot') throw 'provided slot must be a propertySlot';
|
||||
|
||||
const filler = {
|
||||
type: slot.slotType || 'folder',
|
||||
libraryTags: slot.slotTags || [],
|
||||
name: 'Custom ' + slot.name || 'slot filler',
|
||||
parent: { collection: 'creatureProperties', id: slot._id },
|
||||
ancestors: [...slot.ancestors, { collection: 'creatureProperties', id: slot._id }],
|
||||
};
|
||||
return filler;
|
||||
}
|
||||
@@ -16,6 +16,14 @@ export default {
|
||||
wideColumns: Boolean,
|
||||
},
|
||||
};
|
||||
|
||||
/*
|
||||
Removed to improve chrome layout performance, put it back if there are rendering errors
|
||||
.column-layout>span>div {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
}
|
||||
*/
|
||||
</script>
|
||||
|
||||
<style lang="css">
|
||||
@@ -39,14 +47,9 @@ export default {
|
||||
|
||||
.column-layout>div,
|
||||
.column-layout>span>div {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
backface-visibility: hidden;
|
||||
-webkit-backface-visibility: hidden;
|
||||
transform: translateX(0);
|
||||
-webkit-transform: translateX(0);
|
||||
-webkit-column-break-inside: avoid;
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
padding: 4px;
|
||||
|
||||
Reference in New Issue
Block a user