Made font size match device preference
This commit is contained in:
@@ -137,7 +137,7 @@ export const ImportTool: Component = () => {
|
||||
<Show when={step() === "paste"}>
|
||||
<div class="space-y-3 animate-in fade-in duration-300">
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-[10px] font-bold uppercase tracking-wider text-muted-foreground ml-1">
|
||||
<label class="text-[0.625rem] font-bold uppercase tracking-wider text-muted-foreground ml-1">
|
||||
Paste your task list
|
||||
</label>
|
||||
<textarea
|
||||
@@ -154,7 +154,7 @@ export const ImportTool: Component = () => {
|
||||
</p>
|
||||
<Button
|
||||
size="sm"
|
||||
class="gap-2 rounded-xl font-bold uppercase tracking-wider text-[10px] h-9 px-4"
|
||||
class="gap-2 rounded-xl font-bold uppercase tracking-wider text-[0.625rem] h-9 px-4"
|
||||
disabled={!rawText().trim()}
|
||||
onClick={parseText}
|
||||
>
|
||||
@@ -170,13 +170,13 @@ export const ImportTool: Component = () => {
|
||||
{/* Bulk defaults */}
|
||||
<div class="p-3 rounded-xl bg-muted/30 border border-border/50 space-y-3">
|
||||
<div class="flex items-center justify-between">
|
||||
<p class="text-[10px] font-bold uppercase tracking-wider text-muted-foreground">
|
||||
<p class="text-[0.625rem] font-bold uppercase tracking-wider text-muted-foreground">
|
||||
Bulk Defaults
|
||||
</p>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
class="h-7 text-[10px] font-bold uppercase tracking-wider rounded-lg"
|
||||
class="h-7 text-[0.625rem] font-bold uppercase tracking-wider rounded-lg"
|
||||
onClick={applyBulkDefaults}
|
||||
>
|
||||
Apply to All
|
||||
@@ -185,7 +185,7 @@ export const ImportTool: Component = () => {
|
||||
|
||||
<div class="grid grid-cols-2 sm:grid-cols-4 gap-2">
|
||||
<div class="space-y-1">
|
||||
<label class="text-[9px] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Priority</label>
|
||||
<label class="text-[0.5625rem] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Priority</label>
|
||||
<select
|
||||
value={bulkPriority()}
|
||||
onChange={(e) => setBulkPriority(e.currentTarget.value)}
|
||||
@@ -197,7 +197,7 @@ export const ImportTool: Component = () => {
|
||||
</select>
|
||||
</div>
|
||||
<div class="space-y-1">
|
||||
<label class="text-[9px] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Urgency</label>
|
||||
<label class="text-[0.5625rem] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Urgency</label>
|
||||
<select
|
||||
value={bulkUrgency()}
|
||||
onChange={(e) => setBulkUrgency(e.currentTarget.value)}
|
||||
@@ -209,7 +209,7 @@ export const ImportTool: Component = () => {
|
||||
</select>
|
||||
</div>
|
||||
<div class="space-y-1">
|
||||
<label class="text-[9px] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Size</label>
|
||||
<label class="text-[0.5625rem] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Size</label>
|
||||
<select
|
||||
value={bulkSize()}
|
||||
onChange={(e) => setBulkSize(e.currentTarget.value)}
|
||||
@@ -221,14 +221,14 @@ export const ImportTool: Component = () => {
|
||||
</select>
|
||||
</div>
|
||||
<div class="space-y-1">
|
||||
<label class="text-[9px] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Tags</label>
|
||||
<label class="text-[0.5625rem] font-bold uppercase tracking-wider text-muted-foreground/70 ml-0.5">Tags</label>
|
||||
<div class="flex items-center gap-1 flex-wrap">
|
||||
<TagPicker selectedTags={bulkTags()} onTagsChange={setBulkTags} />
|
||||
<For each={bulkTags()}>
|
||||
{(tag) => (
|
||||
<Badge
|
||||
variant="secondary"
|
||||
class="h-6 px-1.5 text-[10px] gap-1 cursor-pointer hover:bg-destructive/10"
|
||||
class="h-6 px-1.5 text-[0.625rem] gap-1 cursor-pointer hover:bg-destructive/10"
|
||||
onClick={() => setBulkTags(bulkTags().filter(t => t !== tag))}
|
||||
>
|
||||
{tag}
|
||||
@@ -250,7 +250,7 @@ export const ImportTool: Component = () => {
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
class="h-7 text-[10px] font-bold uppercase tracking-wider rounded-lg text-muted-foreground"
|
||||
class="h-7 text-[0.625rem] font-bold uppercase tracking-wider rounded-lg text-muted-foreground"
|
||||
onClick={reset}
|
||||
>
|
||||
← Back
|
||||
@@ -284,7 +284,7 @@ export const ImportTool: Component = () => {
|
||||
<select
|
||||
value={task.priority}
|
||||
onChange={(e) => updateTask(task.id, "priority", e.currentTarget.value)}
|
||||
class="h-7 rounded-lg border border-input bg-background px-1.5 text-[11px] shadow-sm outline-none focus:ring-1 focus:ring-ring appearance-none"
|
||||
class="h-7 rounded-lg border border-input bg-background px-1.5 text-[0.6875rem] shadow-sm outline-none focus:ring-1 focus:ring-ring appearance-none"
|
||||
title="Priority"
|
||||
>
|
||||
<For each={PRIORITY_OPTIONS}>
|
||||
@@ -295,7 +295,7 @@ export const ImportTool: Component = () => {
|
||||
<select
|
||||
value={task.urgency}
|
||||
onChange={(e) => updateTask(task.id, "urgency", e.currentTarget.value)}
|
||||
class="h-7 rounded-lg border border-input bg-background px-1.5 text-[11px] shadow-sm outline-none focus:ring-1 focus:ring-ring appearance-none"
|
||||
class="h-7 rounded-lg border border-input bg-background px-1.5 text-[0.6875rem] shadow-sm outline-none focus:ring-1 focus:ring-ring appearance-none"
|
||||
title="Urgency"
|
||||
>
|
||||
<For each={URGENCY_OPTIONS}>
|
||||
@@ -306,7 +306,7 @@ export const ImportTool: Component = () => {
|
||||
<select
|
||||
value={task.size}
|
||||
onChange={(e) => updateTask(task.id, "size", e.currentTarget.value)}
|
||||
class="h-7 rounded-lg border border-input bg-background px-1.5 text-[11px] shadow-sm outline-none focus:ring-1 focus:ring-ring appearance-none"
|
||||
class="h-7 rounded-lg border border-input bg-background px-1.5 text-[0.6875rem] shadow-sm outline-none focus:ring-1 focus:ring-ring appearance-none"
|
||||
title="Size"
|
||||
>
|
||||
<For each={SIZE_OPTIONS}>
|
||||
@@ -323,7 +323,7 @@ export const ImportTool: Component = () => {
|
||||
{(tag) => (
|
||||
<Badge
|
||||
variant="secondary"
|
||||
class="h-6 px-1.5 text-[10px] gap-0.5 cursor-pointer hover:bg-destructive/10"
|
||||
class="h-6 px-1.5 text-[0.625rem] gap-0.5 cursor-pointer hover:bg-destructive/10"
|
||||
onClick={() => updateTask(task.id, "tags", task.tags.filter(t => t !== tag))}
|
||||
>
|
||||
{tag}
|
||||
@@ -352,7 +352,7 @@ export const ImportTool: Component = () => {
|
||||
</Show>
|
||||
<Button
|
||||
size="sm"
|
||||
class="gap-2 rounded-xl font-bold uppercase tracking-wider text-[10px] h-9 px-5"
|
||||
class="gap-2 rounded-xl font-bold uppercase tracking-wider text-[0.625rem] h-9 px-5"
|
||||
disabled={tasks().length === 0 || importing()}
|
||||
onClick={handleImport}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user