fix: unclickable items in detail mode, fixes #57
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Tomáš Mládek 2023-08-02 21:11:43 +02:00
parent 7193f68385
commit c2cc88e43d
2 changed files with 14 additions and 14 deletions

View file

@ -8,7 +8,7 @@
import Spinner from "./utils/Spinner.svelte"; import Spinner from "./utils/Spinner.svelte";
import NotesEditor from "./utils/NotesEditor.svelte"; import NotesEditor from "./utils/NotesEditor.svelte";
import type { AttributeChange } from "../types/base"; import type { AttributeChange } from "../types/base";
import type { ADDRESS_TYPE, EntityInfo } from "upend/types"; import type { EntityInfo } from "upend/types";
import IconButton from "./utils/IconButton.svelte"; import IconButton from "./utils/IconButton.svelte";
import type { BrowseContext } from "../util/browse"; import type { BrowseContext } from "../util/browse";
import { Link, useParams } from "svelte-navigator"; import { Link, useParams } from "svelte-navigator";
@ -21,6 +21,7 @@
import { ATTR_IN, ATTR_LABEL, ATTR_KEY, ATTR_OF } from "upend/constants"; import { ATTR_IN, ATTR_LABEL, ATTR_KEY, ATTR_OF } from "upend/constants";
import InspectGroups from "./InspectGroups.svelte"; import InspectGroups from "./InspectGroups.svelte";
import InspectTypeEditor from "./InspectTypeEditor.svelte"; import InspectTypeEditor from "./InspectTypeEditor.svelte";
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
const params = useParams(); const params = useParams();
@ -219,6 +220,7 @@
} }
let identities = [address]; let identities = [address];
function onResolved(ev: CustomEvent<string[]>) { function onResolved(ev: CustomEvent<string[]>) {
identities = ev.detail; identities = ev.detail;
dispatch("resolved", ev.detail); dispatch("resolved", ev.detail);
@ -527,22 +529,19 @@
justify-content: end; justify-content: end;
} }
.blob-viewer {
width: 73%;
height: 100%;
position: absolute;
left: 1%;
top: 0;
}
.detail-col {
width: 25%;
}
&.blob { &.blob {
.detail-col { .detail-col {
width: 25%;
flex-grow: 0; flex-grow: 0;
} }
.blob-viewer {
width: 73%;
height: 100%;
position: absolute;
left: 1%;
top: 0;
}
} }
} }
} }

View file

@ -11,6 +11,7 @@
import api from "../../lib/api"; import api from "../../lib/api";
import { createEventDispatcher } from "svelte"; import { createEventDispatcher } from "svelte";
import { getTypes } from "../../util/mediatypes"; import { getTypes } from "../../util/mediatypes";
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
export let address: string; export let address: string;
@ -82,7 +83,7 @@
</div> </div>
{/if} {/if}
<style scoped lang="scss"> <style lang="scss">
.preview { .preview {
display: flex; display: flex;
align-items: center; align-items: center;