Fix some Layer styling
This commit is contained in:
parent
aa1acf8d70
commit
e6dd4bf332
1 changed files with 24 additions and 3 deletions
|
@ -73,6 +73,10 @@ export default defineComponent({
|
||||||
player.tabs.splice(unref(props.index), Infinity);
|
player.tabs.splice(unref(props.index), Infinity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setMinimized(min: boolean) {
|
||||||
|
minimized.value = min;
|
||||||
|
}
|
||||||
|
|
||||||
function updateNodes(nodes: Record<string, FeatureNode | undefined>) {
|
function updateNodes(nodes: Record<string, FeatureNode | undefined>) {
|
||||||
props.nodes.value = nodes;
|
props.nodes.value = nodes;
|
||||||
}
|
}
|
||||||
|
@ -90,6 +94,15 @@ export default defineComponent({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.layer-container {
|
||||||
|
min-width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
flex-grow: 1;
|
||||||
|
display: flex;
|
||||||
|
isolation: isolate;
|
||||||
|
}
|
||||||
|
|
||||||
.layer-tab:not(.minimized) {
|
.layer-tab:not(.minimized) {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
@ -123,6 +136,7 @@ export default defineComponent({
|
||||||
.layer-tab.minimized > * {
|
.layer-tab.minimized > * {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
writing-mode: vertical-rl;
|
writing-mode: vertical-rl;
|
||||||
|
text-align: left;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
@ -166,8 +180,8 @@ export default defineComponent({
|
||||||
|
|
||||||
.goBack {
|
.goBack {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 6px;
|
top: 10px;
|
||||||
left: 20px;
|
left: 10px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
margin-top: -50px;
|
margin-top: -50px;
|
||||||
margin-left: -35px;
|
margin-left: -35px;
|
||||||
|
@ -176,7 +190,7 @@ export default defineComponent({
|
||||||
box-shadow: var(--background) 0 2px 3px 5px;
|
box-shadow: var(--background) 0 2px 3px 5px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
font-size: 40px;
|
font-size: 30px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
z-index: 7;
|
z-index: 7;
|
||||||
}
|
}
|
||||||
|
@ -186,3 +200,10 @@ export default defineComponent({
|
||||||
text-shadow: 0 0 7px var(--foreground);
|
text-shadow: 0 0 7px var(--foreground);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.layer-tab.minimized > * > .desc {
|
||||||
|
color: var(--accent1);
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue