Skip to content

Commit

Permalink
fix(client): misc responsive issues
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 16, 2024
1 parent 7e3c8a3 commit 09d3e6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/client/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
<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)">
<div>
<TabGroup vertical @change="changedTab">
<TabList class="2xl:(block) flex">
<TabList class="2xl:(block space-x-0) flex space-x-2 mb-3">
<Tab
v-for="(category, key) in tabs"
:key="key"
Expand All @@ -73,8 +73,8 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
<btn-tab
:selected="selected"
>
<span class="inline-flex items-center space-x-2">
<component :is="category.icon" class="inline text-sm opacity-40 h-4 w-4 mr-2" />
<span class="inline-flex items-center space-x-1">
<component :is="category.icon" class="inline text-sm opacity-40 h-4 w-4" />
<span>{{ category.label }}</span>
<tooltip v-if="category.label === 'Performance'" class="text-left">
<i-carbon-warning class="inline text-xs mx-1" />
Expand Down Expand Up @@ -112,7 +112,7 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
</div>
</div>
</div>
<div class="xl:w-full w-screen overflow-x-auto px-3">
<div class="xl:w-full px-3 mr-5">
<div v-if="tabs[activeTab].label === 'CrUX'">
<div>
<h2 class="font-bold text-2xl mb-7">
Expand Down Expand Up @@ -220,7 +220,7 @@ useTitle(`${website.replace(/https?:\/\/(www.)?/, '')} | Unlighthouse`)
/>
</div>
</div>
<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">
<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)]">
<div v-if="Object.values(searchResults).length === 0" class="px-4 py-3">
<template v-if="searchText">
<p class="mb-2">
Expand Down
2 changes: 1 addition & 1 deletion packages/client/components/Btn/BtnTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defineProps<{
<template>
<div class="flex items-center focus:outline-none justify-between">
<button
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"
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 "
:class="[
selected
? 'bg-blue-900 text-blue-200 shadow'
Expand Down

0 comments on commit 09d3e6c

Please sign in to comment.