2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

fix(ui): remove unsightly scrollbars

This commit is contained in:
18alantom 2022-05-28 07:50:47 +05:30
parent cdefbe055d
commit b9e584f5a9
11 changed files with 16 additions and 14 deletions

View File

@ -77,7 +77,8 @@
text-xs text-gray-600 text-xs text-gray-600
font-semibold font-semibold
whitespace-nowrap whitespace-nowrap
overflow-x-scroll overflow-x-auto
no-scrollbar
" "
> >
{{ {{

View File

@ -17,7 +17,7 @@
/> />
<div <div
v-show="!showInput" v-show="!showInput"
:class="[inputClasses, 'cursor-text whitespace-nowrap overflow-x-scroll']" :class="[inputClasses, 'cursor-text whitespace-nowrap overflow-x-auto']"
@click="activateInput" @click="activateInput"
@focus="activateInput" @focus="activateInput"
tabindex="0" tabindex="0"

View File

@ -16,7 +16,7 @@
text-gray-600 text-base text-gray-600 text-base
px-3 px-3
flex-shrink-0 flex-shrink-0
overflow-x-scroll overflow-x-auto
whitespace-nowrap whitespace-nowrap
" "
> >
@ -50,7 +50,7 @@
text-gray-900 text-base text-gray-900 text-base
px-3 px-3
flex-shrink-0 flex-shrink-0
overflow-x-scroll overflow-x-auto
whitespace-nowrap whitespace-nowrap
" "
> >

View File

@ -58,7 +58,7 @@
<hr v-if="suggestions.length" /> <hr v-if="suggestions.length" />
<!-- Search List --> <!-- Search List -->
<div :style="`max-height: ${49 * 6 - 1}px`" class="overflow-scroll"> <div :style="`max-height: ${49 * 6 - 1}px`" class="overflow-auto">
<div <div
v-for="(si, i) in suggestions" v-for="(si, i) in suggestions"
:key="`${i}-${si.key}`" :key="`${i}-${si.key}`"

View File

@ -16,7 +16,7 @@
text-xl text-xl
font-semibold font-semibold
whitespace-nowrap whitespace-nowrap
overflow-scroll overflow-auto
no-scrollbar no-scrollbar
select-none select-none
w-32 w-32

View File

@ -2,7 +2,7 @@
<div class="flex flex-col"> <div class="flex flex-col">
<PageHeader :title="t`Dashboard`" /> <PageHeader :title="t`Dashboard`" />
<div class="mx-4 overflow-y-scroll no-scrollbar flex flex-col gap-8"> <div class="mx-4 overflow-y-auto no-scrollbar flex flex-col gap-8">
<Cashflow class="" /> <Cashflow class="" />
<hr /> <hr />
<UnpaidInvoices /> <UnpaidInvoices />

View File

@ -18,7 +18,7 @@
@mouseleave="active = null" @mouseleave="active = null"
> >
<div class="w-3 h-3 rounded-sm flex-shrink-0" :class="d.class" /> <div class="w-3 h-3 rounded-sm flex-shrink-0" :class="d.class" />
<p class="ml-2 overflow-x-scroll whitespace-nowrap no-scrollbar w-28"> <p class="ml-2 overflow-x-auto whitespace-nowrap no-scrollbar w-28">
{{ d.account }} {{ d.account }}
</p> </p>
<p class="whitespace-nowrap flex-shrink-0 ml-auto"> <p class="whitespace-nowrap flex-shrink-0 ml-auto">

View File

@ -127,7 +127,7 @@
<div v-if="fileName" class="pb-4"> <div v-if="fileName" class="pb-4">
<h2 class="text-lg font-semibold">{{ t`Assign Imported Labels` }}</h2> <h2 class="text-lg font-semibold">{{ t`Assign Imported Labels` }}</h2>
<div <div
class="gap-2 mt-4 grid grid-flow-col overflow-x-scroll no-scrollbar" class="gap-2 mt-4 grid grid-flow-col overflow-x-auto no-scrollbar"
> >
<div <div
v-for="(f, k) in importer.assignableLabels" v-for="(f, k) in importer.assignableLabels"
@ -165,7 +165,7 @@
{{ t`Verify Imported Data` }} {{ t`Verify Imported Data` }}
</h2> </h2>
<div class="overflow-scroll mt-4 pb-4"> <div class="overflow-auto mt-4 pb-4">
<!-- Column Name Rows --> <!-- Column Name Rows -->
<div <div
class="grid grid-flow-col pb-4 border-b gap-2 sticky top-0 bg-white" class="grid grid-flow-col pb-4 border-b gap-2 sticky top-0 bg-white"
@ -280,7 +280,7 @@
<p class="text-lg text-center"> <p class="text-lg text-center">
{{ t`Successfully created the following ${names.length} entries:` }} {{ t`Successfully created the following ${names.length} entries:` }}
</p> </p>
<div class="max-h-96 overflow-y-scroll"> <div class="max-h-96 overflow-y-auto">
<div <div
v-for="(n, i) in names" v-for="(n, i) in names"
:key="'name-' + i" :key="'name-' + i"

View File

@ -65,7 +65,8 @@
<hr /> <hr />
<!-- File List --> <!-- File List -->
<div class="overflow-scroll" style="max-height: 340px"> <div class="overflow-y-auto" style="max-height: 340px"
>
<div <div
class="h-18 px-6 flex gap-4 items-center" class="h-18 px-6 flex gap-4 items-center"
:class="creatingDemo ? '' : 'hover:bg-gray-100 cursor-pointer'" :class="creatingDemo ? '' : 'hover:bg-gray-100 cursor-pointer'"

View File

@ -11,7 +11,7 @@
<div <div
v-for="(column, i) in columns" v-for="(column, i) in columns"
:key="column.label" :key="column.label"
class="py-4 overflow-x-scroll whitespace-nowrap" class="py-4 overflow-x-auto no-scrollbar whitespace-nowrap"
:class="{ :class="{
'text-right': isNumeric(column.fieldtype), 'text-right': isNumeric(column.fieldtype),
'pr-4': i === columns.length - 1, 'pr-4': i === columns.length - 1,

View File

@ -36,7 +36,7 @@
<div class="mt-2 text-xs">{{ tab.label }}</div> <div class="mt-2 text-xs">{{ tab.label }}</div>
</div> </div>
</div> </div>
<div class="flex-1 overflow-y-scroll"> <div class="flex-1 overflow-y-auto">
<component :is="activeTabComponent" @change="handleChange" /> <component :is="activeTabComponent" @change="handleChange" />
</div> </div>
</div> </div>