|
141 | 141 | <section |
142 | 142 | onmouseenter={onmouseenterToolbar} |
143 | 143 | onmouseleave={onmouseleaveToolbar} |
144 | | - class={["fixed p-3 pointer-events-initial h-18 w-full flex", { |
145 | | - "bottom-0 flex-col-reverse": bottom, |
146 | | - "top-0 flex-col": !bottom, |
147 | | - }]} |
| 144 | + class={[ |
| 145 | + "fixed pt-3 pb-1 px-1 sm:px-3 sm:pb-3 pointer-events-initial w-full flex", |
| 146 | + { |
| 147 | + "bottom-0 flex-col-reverse": bottom, |
| 148 | + "top-0 flex-col": !bottom, |
| 149 | + }, |
| 150 | + ]} |
148 | 151 | transition:fly|global={{ |
149 | 152 | y, |
150 | 153 | duration: 150, |
|
164 | 167 | > |
165 | 168 | <SquareDashedMousePointer |
166 | 169 | absoluteStrokeWidth |
167 | | - class="size-5" |
| 170 | + class="size-4 sm:size-5" |
168 | 171 | /> |
169 | 172 | </ToolbarAction> |
170 | 173 | {#if trackers.current} |
|
180 | 183 | {@const Icon = trackers.current?.isLocked |
181 | 184 | ? LockKeyhole |
182 | 185 | : LockKeyholeOpen} |
183 | | - <Icon absoluteStrokeWidth class="size-6" /> |
| 186 | + <Icon absoluteStrokeWidth class="size-4 sm:size-6" /> |
184 | 187 | </ToolbarAction> |
185 | 188 | {/if} |
186 | 189 | <ToolbarAction |
187 | 190 | bind:pressed={uiStore.svg.showGrid} |
188 | 191 | label="Show Grid Lines" |
189 | 192 | shortcut="#" |
190 | 193 | > |
191 | | - <Grid3x3 absoluteStrokeWidth class="size-6" /> |
| 194 | + <Grid3x3 absoluteStrokeWidth class="size-4 sm:size-6" /> |
192 | 195 | </ToolbarAction> |
193 | 196 | <ToolbarAction |
194 | 197 | bind:pressed={uiStore.svg.showRuler} |
195 | 198 | label="Show Ruler" |
196 | 199 | shortcut="$" |
197 | 200 | > |
198 | | - <Ruler absoluteStrokeWidth class="size-6" /> |
| 201 | + <Ruler absoluteStrokeWidth class="size-4 sm:size-6" /> |
199 | 202 | </ToolbarAction> |
200 | 203 | <ToolbarAction |
201 | 204 | bind:pressed={uiStore.svg.showDistances} |
|
204 | 207 | > |
205 | 208 | <ChevronsLeftRightEllipsis |
206 | 209 | absoluteStrokeWidth |
207 | | - class="size-6" |
| 210 | + class="size-4 sm:size-6" |
208 | 211 | /> |
209 | 212 | </ToolbarAction> |
210 | 213 | <Separator.Root |
211 | | - class="bg-neutral-200 -my-1 mx-1 w-0.5 self-stretch" |
| 214 | + class="bg-neutral-200 -my-1 mx-0.5 sm:mx-1 w-0.5 self-stretch" |
212 | 215 | /> |
213 | 216 | <ToolbarAction |
214 | 217 | disabled={disableForFirefox} |
|
219 | 222 | : "Rainbow Layouts"} |
220 | 223 | shortcut="6" |
221 | 224 | > |
222 | | - <Rainbow absoluteStrokeWidth class="size-6" /> |
| 225 | + <Rainbow absoluteStrokeWidth class="size-4 sm:size-6" /> |
223 | 226 | </ToolbarAction> |
224 | 227 | <Separator.Root |
225 | | - class="bg-neutral-200 -my-1 mx-1 w-0.5 self-stretch" |
| 228 | + class="bg-neutral-200 -my-1 mx-0.5 sm:mx-1 w-0.5 self-stretch" |
226 | 229 | /> |
227 | 230 | <ToolbarAction |
228 | 231 | pressed={designModePressed} |
229 | 232 | onPressedChange={designMode} |
230 | 233 | label="Design Mode: Edit any text on the document" |
231 | 234 | shortcut="7" |
232 | 235 | > |
233 | | - <TextCursor absoluteStrokeWidth class="size-4" /> |
| 236 | + <TextCursor absoluteStrokeWidth class="size-3 sm:size-4" /> |
234 | 237 | </ToolbarAction> |
235 | 238 | <Separator.Root |
236 | | - class="bg-neutral-200 -my-1 mx-1 w-0.5 self-stretch" |
| 239 | + class="bg-neutral-200 -my-1 mx-0.5 sm:mx-1 w-0.5 self-stretch" |
237 | 240 | /> |
238 | 241 | <ToolbarAction |
239 | 242 | bind:pressed={uiStore.sidePanel.isVisible} |
240 | 243 | label="Show Side Panel" |
241 | 244 | shortcut="8" |
242 | 245 | > |
243 | | - <PanelRightOpen absoluteStrokeWidth class="size-6" /> |
| 246 | + <PanelRightOpen |
| 247 | + absoluteStrokeWidth |
| 248 | + class="size-4 sm:size-6" |
| 249 | + /> |
244 | 250 | </ToolbarAction> |
245 | 251 | <Separator.Root |
246 | | - class="bg-neutral-200 -my-1 mx-1 w-0.5 self-stretch" |
| 252 | + class="bg-neutral-200 -my-1 mx-0.5 sm:mx-1 w-0.5 self-stretch" |
247 | 253 | /> |
248 | 254 | <ToolbarAction |
249 | 255 | pressed={false} |
250 | 256 | label="Screenshot" |
251 | 257 | onPressedChange={capture} |
252 | 258 | shortcut="9" |
253 | 259 | > |
254 | | - <Camera absoluteStrokeWidth class="size-6" /> |
| 260 | + <Camera absoluteStrokeWidth class="size-4 sm:size-6" /> |
255 | 261 | </ToolbarAction> |
256 | 262 | <Separator.Root |
257 | | - class="bg-neutral-200 -my-1 mx-1 w-0.5 self-stretch" |
| 263 | + class="bg-neutral-200 -my-1 mx-0.5 sm:mx-1 w-0.5 self-stretch" |
258 | 264 | /> |
259 | 265 | <ToolbarSettings /> |
260 | 266 | </div> |
|
0 commit comments