fix touch area

This commit is contained in:
tglide
2023-08-22 19:34:20 +01:00
parent 250eba1f22
commit 5668309bab
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -3,11 +3,13 @@
export let onlyDesktop = false;
export let width: number = null;
export let showOverflow = false;
let className = '';
export { className as class };
</script>
<div
style={width ? `--p-col-width:${width?.toString()}` : ''}
class="table-col"
class="table-col {className}"
class:u-overflow-visible={showOverflow}
class:is-only-desktop={onlyDesktop}
data-title={title}
+4 -4
View File
@@ -23,8 +23,8 @@
};
</script>
<TableCell>
<div on:click={handleClick} on:keypress={handleClick} />
<TableCell class="u-position-relative">
<div class="touch-area" on:click={handleClick} on:keypress={handleClick} />
<InputCheckbox
bind:element={el}
id="select-{id}"
@@ -32,9 +32,9 @@
on:click={handleClick} />
</TableCell>
<!-- <style lang="scss">
<style lang="scss">
.touch-area {
position: absolute;
inset: 0;
}
</style> -->
</style>