Skip to content

Commit 09d3e6c

Browse files
committed
fix(client): misc responsive issues
1 parent 7e3c8a3 commit 09d3e6c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/client/App.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
6363
<div class="flex justify-between max-h-[95%] flex-col xl:ml-3 mx-3 mr-0 w-full 2xl:(mr-5 w-250px mb-0)">
6464
<div>
6565
<TabGroup vertical @change="changedTab">
66-
<TabList class="2xl:(block) flex">
66+
<TabList class="2xl:(block space-x-0) flex space-x-2 mb-3">
6767
<Tab
6868
v-for="(category, key) in tabs"
6969
:key="key"
@@ -73,8 +73,8 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
7373
<btn-tab
7474
:selected="selected"
7575
>
76-
<span class="inline-flex items-center space-x-2">
77-
<component :is="category.icon" class="inline text-sm opacity-40 h-4 w-4 mr-2" />
76+
<span class="inline-flex items-center space-x-1">
77+
<component :is="category.icon" class="inline text-sm opacity-40 h-4 w-4" />
7878
<span>{{ category.label }}</span>
7979
<tooltip v-if="category.label === 'Performance'" class="text-left">
8080
<i-carbon-warning class="inline text-xs mx-1" />
@@ -112,7 +112,7 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
112112
</div>
113113
</div>
114114
</div>
115-
<div class="xl:w-full w-screen overflow-x-auto px-3">
115+
<div class="xl:w-full px-3 mr-5">
116116
<div v-if="tabs[activeTab].label === 'CrUX'">
117117
<div>
118118
<h2 class="font-bold text-2xl mb-7">
@@ -220,7 +220,7 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
220220
/>
221221
</div>
222222
</div>
223-
<div class="w-full min-w-1500px 2xl:(max-h-[calc(100vh-100px)]) lg:max-h-[calc(100vh-205px)] sm:max-h-[calc(100vh-220px)] max-h-[calc(100vh-250px)] overflow-auto pr-5 mr-4">
223+
<div class="w-full min-w-1500px 2xl:(max-h-[calc(100vh-100px)]) lg:max-h-[calc(100vh-205px)] sm:max-h-[calc(100vh-220px)] max-h-[calc(100vh-250px)]">
224224
<div v-if="Object.values(searchResults).length === 0" class="px-4 py-3">
225225
<template v-if="searchText">
226226
<p class="mb-2">

packages/client/components/Btn/BtnTab.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defineProps<{
77
<template>
88
<div class="flex items-center focus:outline-none justify-between">
99
<button
10-
class="focus:(outline-none ring-1) ring-offset-blue-400 ring-white ring-opacity-60 flex flex-col text-xs lg:(px-2 flex-row py-1 text-sm) items-center justify-between w-full leading-5 transition font-medium text-blue-700 rounded-lg"
10+
class="space-x-2 focus:(outline-none ring-1) ring-offset-blue-400 ring-white ring-opacity-60 flex flex-col text-xs lg:(px-2 flex-row py-1 text-sm) items-center justify-between w-full leading-5 transition font-medium text-blue-700 rounded-lg "
1111
:class="[
1212
selected
1313
? 'bg-blue-900 text-blue-200 shadow'

0 commit comments

Comments
 (0)