🎨 Minor stylings

This commit is contained in:
Liyas Thomas
2020-01-10 05:30:38 +05:30
parent 355688abf8
commit bf1a143f03
6 changed files with 28 additions and 29 deletions

View File

@@ -58,6 +58,7 @@
padding: 8px 16px;
font-size: 16px;
font-family: "Roboto Mono", monospace;
font-weight: 400;
&:last-child {
border-radius: 0 0 8px 8px;

View File

@@ -4,18 +4,14 @@
{{ argName }}
</span>
:
<typelink
:type="argType"
:jumpTypeCallback="jumpCallback"
/>
<typelink :type="argType" :jumpTypeCallback="jumpCallback" />
</span>
</template>
<style>
</style>
<style></style>
<script>
import typelink from './typelink';
import typelink from "./typelink";
export default {
components: {
@@ -36,9 +32,7 @@ export default {
},
methods: {
jumpCallback(typeName) {
}
jumpCallback(typeName) {}
}
}
};
</script>

View File

@@ -4,14 +4,19 @@
{{ fieldName }}
<span v-if="fieldArgs.length > 0">
(
<span v-for="(field, index) in fieldArgs" :key="index">
{{ field.name }}: <typelink :gqlType="field.type" :jumpTypeCallback="jumpTypeCallback" />
<span v-if="index !== fieldArgs.length - 1">
,
</span>
<span v-for="(field, index) in fieldArgs" :key="index">
{{ field.name }}:
<typelink
:gqlType="field.type"
:jumpTypeCallback="jumpTypeCallback"
/>
<span v-if="index !== fieldArgs.length - 1">
,
</span>
)
</span>: <typelink :gqlType="gqlField.type" :jumpTypeCallback="jumpTypeCallback" />
</span>
) </span
>:
<typelink :gqlType="gqlField.type" :jumpTypeCallback="jumpTypeCallback" />
</div>
<div class="field-desc" v-if="gqlField.description">
{{ gqlField.description }}
@@ -20,7 +25,6 @@
<div class="field-deprecated" v-if="gqlField.isDeprecated">
DEPRECATED
</div>
</div>
</template>
@@ -49,7 +53,7 @@
</style>
<script>
import typelink from './typelink';
import typelink from "./typelink";
export default {
components: {
@@ -58,7 +62,6 @@ export default {
props: {
gqlField: Object,
jumpTypeCallback: Function
},
@@ -73,7 +76,6 @@ export default {
);
}, "");
const argsString = args.length > 0 ? `(${args})` : "";
return `${
this.gqlField.name
}${argsString}: ${this.gqlField.type.toString()}`;

View File

@@ -35,9 +35,9 @@ export default {
components: {
"gql-field": () => import("./field")
},
props: {
gqlType: {},
jumpTypeCallback: Function
}
};

View File

@@ -3,16 +3,18 @@
</template>
<style>
.typelink {
color: red
}
.typelink {
color: var(--ac-color);
font-family: "Roboto Mono", monospace;
font-weight: 400;
cursor: pointer;
}
</style>
<script>
export default {
props: {
gqlType: null,
// (typeName: string) => void
jumpTypeCallback: Function
},
@@ -28,6 +30,5 @@ export default {
this.jumpTypeCallback(this.gqlType);
}
}
}
};
</script>

View File

@@ -298,6 +298,7 @@ ol li {
top: 10px;
right: 10px;
font-family: "Roboto Mono", monospace;
font-weight: 400;
background-color: transparent;
padding: 2px 6px;
border-radius: 8px;